[Dev-C++] joySetCapture : "WM_JOYMOVE" ???
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ben L. <lau...@in...> - 2001-02-07 14:30:40
|
Hi !
I need help !
I'm trying to use function joySetCapture to send a message to my window =
when the joystick position moves.
But, that's it, the message "WM_JOYMOVE" is not knowed in Dev-C++.=20
It gives me an error "WM_JOYMOVE undeclared"
Here's what the WIN32 API help says :
You can notify Windows to send joystick messages to an application =
whenever the position of a joystick axis changes by a value greater than =
the movement threshold of the device. The movement threshold is the =
distance the joystick must be moved before a WM_JOYMOVE message is sent =
to a window that has captured the device. The threshold is initially =
zero. You can set the movement threshold by using the joySetThreshold =
function. You can retrieve the minimum polling frequency of the joystick =
by using the joyGetDevCaps function.
Have you got an idea to help me out ?
Thank you in anticipation,
Ben.
|