diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-03-18 12:40:55 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-03-18 12:40:55 +0100 |
commit | 137f2768b91664ffd51871b049e2d2d38eece1f7 (patch) | |
tree | 69286f1bb5acc4acd516f7a54d451559abcd0e6c | |
parent | aec28d7953327684c6295d6f6ba153b908881faf (diff) | |
download | vala-137f2768b91664ffd51871b049e2d2d38eece1f7.tar.gz |
sdl2: Improve Keyboard.get_state() and drop custom implementation
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1420
-rw-r--r-- | vapi/sdl2.vapi | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/vapi/sdl2.vapi b/vapi/sdl2.vapi index d0a01095d..c8040acfb 100644 --- a/vapi/sdl2.vapi +++ b/vapi/sdl2.vapi @@ -3561,16 +3561,7 @@ namespace SDL { public static Video.Window get_focus (); [CCode (cname = "SDL_GetKeyboardState")] - public static unowned uint8* get_raw_state (out int numkeys = null); - - [CCode (cname = "vala_get_keyboard_state")] - public static unowned bool[] get_state () { - size_t len; - uint8* raw = get_raw_state (out len); - unowned bool[] retval = (bool[])raw; - retval.length = (int)len; - return retval; - } + public static unowned uint8[] get_state (); [CCode (cname = "SDL_GetModState")] public static Input.Keymod get_modifierstate (); |