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