diff options
author | Loïc Hoguin <[email protected]> | 2018-01-03 16:53:27 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-01-03 16:53:48 +0100 |
commit | b8c213eaf6183208f87bad4cd583958ae9967cc9 (patch) | |
tree | 01982b5f6c1eb27397e7898b7f6bf1add3cc852c /c_src/esdl2.h | |
parent | 68220e90d79bddfce27afe1a6c3ba990986b239e (diff) | |
download | esdl2-b8c213eaf6183208f87bad4cd583958ae9967cc9.tar.gz esdl2-b8c213eaf6183208f87bad4cd583958ae9967cc9.tar.bz2 esdl2-b8c213eaf6183208f87bad4cd583958ae9967cc9.zip |
Add many sdl_keyboard functions
Diffstat (limited to 'c_src/esdl2.h')
-rw-r--r-- | c_src/esdl2.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c_src/esdl2.h b/c_src/esdl2.h index 6899997..7fa237f 100644 --- a/c_src/esdl2.h +++ b/c_src/esdl2.h @@ -269,7 +269,15 @@ /* sdl_hints */ \ F(add_hint_callback, 3) \ /* sdl_keyboard */ \ + F(get_key_from_name, 1) \ + F(get_key_from_scancode, 1) \ + F(get_key_name, 1) \ + F(get_mod_state, 0) \ + F(get_scancode_from_key, 1) \ + F(get_scancode_from_name, 1) \ + F(get_scancode_name, 1) \ F(is_text_input_active, 0) \ + F(set_mod_state, 1) \ F(start_text_input, 0) \ F(stop_text_input, 0) \ /* sdl_mouse */ \ @@ -373,6 +381,7 @@ NIF_ENUM_TO_ATOM_FUNCTION_DECL(button_to_atom, Uint8) NIF_ENUM_TO_ATOM_FUNCTION_DECL(mousewheel_direction_to_atom, Uint32) NIF_ENUM_TO_ATOM_FUNCTION_DECL(window_event_to_atom, Uint8) +NIF_LIST_TO_FLAGS_FUNCTION_DECL(keymod_list_to_flags, Uint16) NIF_FLAGS_TO_LIST_FUNCTION_DECL(keymod_flags_to_list, Uint16) ERL_NIF_TERM mouse_state_to_list(ErlNifEnv*, Uint32); |