Fixed bug in Event::to_ll that was making test case fail

This commit is contained in:
Simon Heath
2016-10-21 12:17:03 -04:00
parent 1c0d4ee028
commit ef87cd1325
+2 -2
View File
@@ -1154,11 +1154,11 @@ impl Event {
} => {
let buttonval = button.to_ll();
let event = ll::SDL_ControllerButtonEvent {
type_: ll::SDL_CONTROLLERBUTTONDOWN,
type_: ll::SDL_CONTROLLERBUTTONUP,
timestamp: timestamp,
which: which,
button: buttonval as u8,
state: ll::SDL_PRESSED,
state: ll::SDL_RELEASED,
padding1: 0,
padding2: 0,
};