Module: Carbuncle::Input

Defined in:
gems/carbuncle-input/mrblib/input.rb

Defined Under Namespace

Classes: Action, Controller

Class Method Summary collapse

Class Method Details

.[](controller_name) ⇒ Object



228
229
230
231
# File 'gems/carbuncle-input/mrblib/input.rb', line 228

def [](controller_name)
  @controllers ||= {}
  @controllers[controller_name] ||= Carbuncle::Input::Controller.new
end

.load(file) ⇒ Object



233
234
235
# File 'gems/carbuncle-input/mrblib/input.rb', line 233

def load(file)
  @controllers = {}
end

.playerObject



240
241
242
# File 'gems/carbuncle-input/mrblib/input.rb', line 240

def player
  @controller ||= self[0]
end

.save(file) ⇒ Object



237
238
# File 'gems/carbuncle-input/mrblib/input.rb', line 237

def save(file)
end