Skip to content

Commit

Permalink
sdl: Update Keysym.Mod type from uint16 to Keymod
Browse files Browse the repository at this point in the history
Signed-off-by: Lilis Iskandar <[email protected]>
  • Loading branch information
veeableful committed Apr 16, 2024
1 parent 74189f8 commit 374428a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdl/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ func goEvent(cevent *CEvent) Event {
WindowID: uint32(e.windowID),
State: ButtonState(e.state),
Keysym: Keysym{
Mod: uint16(e.keysym.mod),
Mod: Keymod(e.keysym.mod),
Sym: Keycode(e.keysym.sym),
Scancode: Scancode(e.keysym.scancode),
},
Expand Down
2 changes: 1 addition & 1 deletion sdl/keyboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import (
type Keysym struct {
Scancode Scancode // SDL physical key code
Sym Keycode // SDL virtual key code
Mod uint16 // current key modifiers
Mod Keymod // current key modifiers
unused uint32 // unused
}

Expand Down

0 comments on commit 374428a

Please sign in to comment.