| Home
| Previous
| Next
| Up

EVT_pollJoystick

Polls the joystick for position and button information.

Declaration

void EVTAPI EVT_pollJoystick(void)

Prototype In

event.h

Description

This routine is used to poll analogue joysticks for button and position information. It should be called once for each main loop of the user application, just before processing all pending events via EVT_getNext. All information polled from the joystick will be posted to the event queue for later retrieval.

Note: Most analogue joysticks will provide readings that change even though the joystick has not moved. Hence if you call this routine you will likely get an EVT_JOYMOVE event every time through your event loop.

See Also

EVT_getNext, EVT_peekNext, EVT_joySetUpperLeft, EVT_joySetLowerRight, EVT_joySetCenter, EVT_joyIsPresent

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com