Index   Commented   Search   About

Time-Based Notifications

You can notify the operating system to send joystick messages to an application at regular time intervals by setting the fChanged parameter of joySetCapture to FALSE and by specifying the interval length between successive messages. To do this, assign the uPeriod parameter a value between the minimum and maximum polling frequencies for the joystick. You can determine this range by using the joyGetDevCaps function, which fills the wPeriodMin and wPeriodMax members in the JOYCAPS structure. If the uPeriod value is outside the range of valid polling frequencies for the joystick, the joystick driver uses the minimum or maximum polling frequency, whichever is closer to the uPeriod value.

Note Windows sets up a timer event with each call to joySetCapture.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun