Signed-off-by: Lilis Iskandar <lilis@veand.co>
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.