Class: RGame::Engine::InputMap::Binding

Inherits:
Struct
  • Object
show all
Defined in:
lib/rgame/engine/input/input_map.rb

Overview

One action's resolved sources. Built once, at construction, so polling walks plain attribute reads and allocates nothing.

buttons is "held if any of these is down"; pairs is a list of [negative, positive] button pairs, each a digital axis; stick is an analog axis id.

Instance Attribute Summary collapse

Instance Attribute Details

#buttonsObject

Returns the value of attribute buttons

Returns:

  • (Object)

    the current value of buttons



66
67
68
# File 'lib/rgame/engine/input/input_map.rb', line 66

def buttons
  @buttons
end

#pairsObject

Returns the value of attribute pairs

Returns:

  • (Object)

    the current value of pairs



66
67
68
# File 'lib/rgame/engine/input/input_map.rb', line 66

def pairs
  @pairs
end

#stickObject

Returns the value of attribute stick

Returns:

  • (Object)

    the current value of stick



66
67
68
# File 'lib/rgame/engine/input/input_map.rb', line 66

def stick
  @stick
end