View Full Version : Joystick accessors
superstretch
20-02-2010, 21:40
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
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)
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.