Commit Graph

3 Commits

Author SHA1 Message Date
Lilis Iskandar 4b17b2bbcf
examples: updated to remove pointer in event switch cases
Signed-off-by: Lilis Iskandar <lilis@veand.co>
2023-11-30 15:00:44 +08:00
Joshua Salzedo 03cd1562fd
Fixed init and button detection runtime (#7)
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-10 22:50:16 +08: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