From b6e5b54091a2806aae5e84fd83fbf0c05d5e1574 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 25 Apr 2014 21:50:46 +0200 Subject: [PATCH] Add note to sdl_input.c regarding mouse wheel up/down --- input/sdl_input.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/input/sdl_input.c b/input/sdl_input.c index b829488946..abdd79e8d8 100644 --- a/input/sdl_input.c +++ b/input/sdl_input.c @@ -252,8 +252,12 @@ static void sdl_poll_mouse(sdl_input_t *sdl) sdl->mouse_l = SDL_BUTTON(SDL_BUTTON_LEFT) & btn ? 1 : 0; sdl->mouse_r = SDL_BUTTON(SDL_BUTTON_RIGHT) & btn ? 1 : 0; sdl->mouse_m = SDL_BUTTON(SDL_BUTTON_MIDDLE) & btn ? 1 : 0; +#if 0 + /* Only SDL 1.2 supports this, SDL 2.0 doesn't. Will need to create compliant code for both here based on SDL version detection + * at runtime */ sdl->mouse_wu = SDL_BUTTON(SDL_BUTTON_WHEELUP) & btn ? 1 : 0; sdl->mouse_wd = SDL_BUTTON(SDL_BUTTON_WHEELDOWN) & btn ? 1 : 0; +#endif } static void sdl_input_poll(void *data)