Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Joystick accessors (http://www.chiefdelphi.com/forums/showthread.php?t=83230)

superstretch 20-02-2010 21:40

Joystick accessors
 
Hi, I hope someone can clear up some confusion the WPI users guide is causing me. What is the difference between someJoysick.GetX(), someJoysick.GetAxis(kXAxis), someJoysick.GetRawAxis(kXAxis)?

byteit101 21-02-2010 09:20

Re: Joystick accessors
 
nothing, they all get the X axis. I recommend the GetX() function, but if you need to be able to dynamically set the joystick axis you need to get, use the others
edit: GetRawAxis uses a number instead of the enum (kXAxis)


All times are GMT -5. The time now is 13:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi