Skip to content

Commit

Permalink
Change Keycode from enum into tuple of one i32
Browse files Browse the repository at this point in the history
  • Loading branch information
hvox committed Mar 14, 2024
1 parent bbfabbf commit 7f4b7c9
Show file tree
Hide file tree
Showing 3 changed files with 246 additions and 487 deletions.
2 changes: 1 addition & 1 deletion src/sdl2/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ where
.unwrap_or(sys::SDL_Scancode::SDL_SCANCODE_UNKNOWN);
let keycode = keycode
.into()
.map(|kc| kc as sys::SDL_Keycode)
.map(|kc| kc.0 as sys::SDL_Keycode)
.unwrap_or(sys::SDL_KeyCode::SDLK_UNKNOWN as i32);
let keymod = keymod.bits() as u16;
sys::SDL_Keysym {
Expand Down
Loading

0 comments on commit 7f4b7c9

Please sign in to comment.