Mouse wheel in SDL???

Started by
1 comment, last by VanKurt 18 years, 7 months ago
Hi there! A few minutes ago I checked the SDL help for hints on how to handle mouse wheel events...I was shocked to find NOTHING! Even this on this forum and Google I couldn't find any information :-( Is it just me beeing blind? Or is there no mw support? Something like SDL_MouseWheelUp/SDL_MouseWheelDown would be great ;-) Help! :-D
Advertisement
Well, I haven't tried it myself but I just looked in SDL_mouse.h for SDL 1.2.9, and it includes these lines:
#define SDL_BUTTON_WHEELUP	4#define SDL_BUTTON_WHEELDOWN	5

So I guess you can handle wheel events just as you would any other mouse button events.
Jooleem. Get addicted.
Oh, wow! Why didn't I see those lines? Guess I'm just too tired ;-)
Thank's a lot dude! You saved my day :-D

This topic is closed to new replies.

Advertisement