class PF::Controller(T)
- PF::Controller(T)
- Reference
- Object
Overview
Handle button to action mapping in a dynamic way
Defined in:
controller.crConstructors
Class Method Summary
-
.detect_layout
Detect the current keyboard layout
Instance Method Summary
- #any_held?
-
#held?(name)
Returns true if a registered button is being held
-
#map_event(event : SDL::Event | Nil)
Map
- #none_held?
- #press(button)
-
#pressed?(name)
Returns true the first time called if a button has been pressed
- #registered?(button)
- #release(button)
-
#released?(name)
Returns true the first time called after a button has been released