Class: RGame::Engine::InputMap::Binding
- Inherits:
-
Struct
- Object
- Struct
- RGame::Engine::InputMap::Binding
- 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
-
#buttons ⇒ Object
Returns the value of attribute buttons.
-
#pairs ⇒ Object
Returns the value of attribute pairs.
-
#stick ⇒ Object
Returns the value of attribute stick.
Instance Attribute Details
#buttons ⇒ Object
Returns the value of attribute buttons
66 67 68 |
# File 'lib/rgame/engine/input/input_map.rb', line 66 def @buttons end |
#pairs ⇒ Object
Returns the value of attribute pairs
66 67 68 |
# File 'lib/rgame/engine/input/input_map.rb', line 66 def pairs @pairs end |
#stick ⇒ Object
Returns the value of attribute stick
66 67 68 |
# File 'lib/rgame/engine/input/input_map.rb', line 66 def stick @stick end |