aboutsummaryrefslogtreecommitdiffstats
path: root/c_src/sdl_mouse.c
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-12-24 21:47:54 +0100
committerLoïc Hoguin <[email protected]>2017-12-24 21:47:54 +0100
commit818e1558b0dcfd0238a9eb9bb86fb103e63483b6 (patch)
tree7883ae39fd96cf069b4e0fd317cfa59c358027c9 /c_src/sdl_mouse.c
parent6e4d688f241906d350aa1dacab6c2ba1488cf8f4 (diff)
downloadesdl2-818e1558b0dcfd0238a9eb9bb86fb103e63483b6.tar.gz
esdl2-818e1558b0dcfd0238a9eb9bb86fb103e63483b6.tar.bz2
esdl2-818e1558b0dcfd0238a9eb9bb86fb103e63483b6.zip
Add the direction in the mouse wheel events
Diffstat (limited to 'c_src/sdl_mouse.c')
-rw-r--r--c_src/sdl_mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/sdl_mouse.c b/c_src/sdl_mouse.c
index 8b36131..eb2af39 100644
--- a/c_src/sdl_mouse.c
+++ b/c_src/sdl_mouse.c
@@ -18,7 +18,7 @@
E(normal, SDL_MOUSEWHEEL_NORMAL) \
E(flipped, SDL_MOUSEWHEEL_FLIPPED)
-static NIF_ATOM_TO_ENUM_FUNCTION(atom_to_mousewheel_direction, int, MOUSEWHEEL_DIRECTION_ENUM)
+NIF_ENUM_TO_ATOM_FUNCTION(mousewheel_direction_to_atom, Uint32, MOUSEWHEEL_DIRECTION_ENUM)
static ERL_NIF_TERM get_mouse_state_common(ErlNifEnv* env, int x, int y, Uint32 state)
{