mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Fixed bug in Event::to_ll that was making test case fail
This commit is contained in:
+2
-2
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user