|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||||
|
||||||
|
Re: Joystick.getRawAxis()
In Java, getRawAxis gets the scale value of an axis based on joystick axis number, rather then the joystick axis enum. Java does not provide an interface to the unscaled value like LabVIEW does.
Last edited by Joe Ross : 17-02-2014 at 22:16. |
|
#5
|
|||
|
|||
|
Re: Joystick.getRawAxis()
Sorry. I was on autopilot and forgot that it was a Java question.
Greg McKaskle |
|
#6
|
|||||
|
|||||
|
Re: Joystick.getRawAxis()
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|