Skip to main content
gamedev.net
🔒 Locked

scroll mouse button

Started by sdrichardson Mar 21, 2004 at 12:02 PM 5 replies 350+ views
Original Post
sdrichardson
sdrichardson
can anyone show me how to use the scroll mouse button without DirectInput? Scotty.
Scotty.
Colin Jeanne
Colin Jeanne
WM_MOUSEWHEEL


Thanks Salsa!Colin Jeanne | Invader's Realm
"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud

[edited by - Invader X on March 21, 2004 2:42:56 PM]
sdrichardson
sdrichardson
yes but its not a simple case of putting a ''case WM_MOUSEWHEEL:'' in the msgproc... How do i decipher which direction it is being turned?



Scotty.
Scotty.
Empirical
Empirical
Info here

For being such a helpfull guy, can you do me a favour (if using VC++), right click WM_MOUSEWHEEL and click goto definiton and tell me what the constant is. My SDK is out of date but i cant be asked downloading it all for one constant!

Ta
sdrichardson
sdrichardson
#define WM_MOUSEWHEEL 0x020A

is that what you mean?



Scotty.
Scotty.
Colin Jeanne
Colin Jeanne
You need to define _WIN32_WINNT to be great than or equal to 0x0400 or _WIN32_WINDOWS to be greater than 0x0400.


Thanks Salsa!Colin Jeanne | Invader''s Realm
"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.