![]() |
Joystick.getRawAxis()
What is the range of the .getRawAxis() method on the joystick? is it 0-360 (degrees), 0 - 2pi (radians) or -1 to 1? Couldn't find it in sunspot doc.
|
Re: Joystick.getRawAxis()
Joystick::GetRawAxis() will return a value between -1 and 1, with 0 as neutral. Positive usually corresponds to up if in the y-direction and right if in the x-direction.
|
Re: Joystick.getRawAxis()
Actually, the returned data is an I8. It goes from -128 to 127. The normal joystick functions are scaled, but not the raw one.
Greg McKaskle |
Re: Joystick.getRawAxis()
Quote:
|
Re: Joystick.getRawAxis()
Sorry. I was on autopilot and forgot that it was a Java question.
Greg McKaskle |
Re: Joystick.getRawAxis()
Quote:
|
| All times are GMT -5. The time now is 02:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi