Skip to main content
gamedev.net
🔒 Locked

Mouse wheeling

Started by sipickles 3 replies 350+ views
Original Post
sipickles
sipickles
Hi, My code uses the WM_LBUTTONDOWN events to perform picking tests. How would I go about activating the mousewheel? I tried WM_MOUSEWHEEL but I get an unrecongised variable error. MSDN doen't recommend much..... does anyone else use this? Thanks Simon
zppz
zppz

try this

#ifndef WM_MOUSEWHEEL
#define WM_MOUSEWHEEL 0x020A
#endif
starmole
starmole
You need to define the 'target version'

#define WINVER 0x0501
#define _WIN32_WINNT 0x0501
#include <windows.h>

(If you have a reasonable recent Platform SDK, of course.)
zppz
zppz
Quote:
Defining the value yourself defeats the purpose of having defines in the first place.
True. Docs for this are here

Topic Locked

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

Sign in to reply to this topic.