Event-Based Notifications

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 joySetThresholdAH0GWE function. You can retrieve the minimum polling frequency of the joystick by using the joyGetDevCapsC8V8O5 function.