![]() |
Registering mouse wheel in SDL2? | ![]() |
![]() |
Registering mouse wheel in SDL2? | ![]() |
Melker Narikka
Guest
![]() |
![]() |
Does this wiki page help?
https://wiki.libsdl.org/SDL_MouseWheelEvent -- Melker Narikka On Sun, Sep 21, 2014 at 7:53 PM, Bananskrue wrote:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|
![]() |
Registering mouse wheel in SDL2? | ![]() |
Jeffrey Carpenter
Guest
![]() |
![]() |
Hi there,
I believe it is the SDL_MOUSEWHEEL event that you are looking for -- you can access its X, Y axis via event.wheel.x, event.wheel.y. Check out the documentation for it at https://wiki.libsdl.org/SDL_MouseWheelEvent?highlight=%28%5CbCategoryStruct%5Cb%29%7C%28CategoryEvents%29 Cheers, Jeffrey Carpenter On 2014/09/ 21, at 11:53, Bananskrue wrote:
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|
![]() |
![]() |
Bananskrue
![]() |
![]() |
Aah Thanks to both of you, I did find SDL_MOUSEWHEEL it just didn't help me figuring which way the wheel was rolling.
Furthermore, I also did find SDL_MouseWheelEvent but didn't realize it was a part of the SDL_Event class, this explains everything. Thanks so much! I was really stumped here. |
||||||||||
|