Jump to content
  • Advertisement
Sign in to follow this  
VanKurt

Mouse wheel in SDL???

This topic is 4732 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!