Commit Graph

2 Commits

Author SHA1 Message Date
Joshua Salzedo 3b65f5e554
Fixed init and button detection runtime
The JoyButtonEvent handler incorrectly checked the t.Type rather than the T.State when deciding whether a button was pressed or released.
The joystick constructor was missing an int cast.
2020-03-09 15:57:26 -07:00
Lilis Iskandar cb1f77b851 examples: add joystick-input example
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2019-12-21 20:23:23 +08:00