Package gaiasky.interfce
Interface IControllerMappings
-
- All Known Implementing Classes:
AbstractControllerMappings,ControllerMappings,XBox360Mappings
public interface IControllerMappings
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAxisMove()Returns the code of the axis that controls the forward and backward movementdoublegetAxisMoveSensitivity()Sensitivity of move axisintgetAxisPitch()Returns the code of the axis that produces: Vertical rotation around focus in focus mode Vertical look rotation (pitch) in free modedoublegetAxisPitchSensitivity()Sensitivity of pitch axisintgetAxisRoll()Returns the code of the axis that produces: Roll rotation in focus mode Horizontal lateral movement in free modedoublegetAxisRollSensitivity()Sensitivity of roll axisdoublegetAxisValuePower()Power to apply to the linear value: val = val^powdoublegetAxisVelDownSensitivity()Sensitivity of velocity down axisintgetAxisVelocityDown()Returns the code of the axis used to decrease the velocity.intgetAxisVelocityUp()Returns the code of the axis used to increase the velocity.doublegetAxisVelUpSensitivity()Sensitivity of velocity up axisintgetAxisYaw()Returns the code of the axis that produces: Horizontal rotation around focus in focus mode Horizontal look rotation (yaw) in free modedoublegetAxisYawSensitivity()Sensitivity of yaw axisintgetButtonDown()Returns the code of the button used to go down.intgetButtonModeToggle()Returns the code of the button used to toggle between free and focus mode.intgetButtonUp()Returns the code of the button used to go up.intgetButtonVelocityDown()Returns the code of the button used to decrease the velocity.intgetButtonVelocityMultiplierHalf()Returns the code of the button that, when pressed, multiplies the velocity vector by 0.5.intgetButtonVelocityMultiplierTenth()Returns the code of the button that, when pressed, multiplies the velocity vector by 0.1.intgetButtonVelocityUp()Returns the code of the button used to increase the velocity.
-
-
-
Method Detail
-
getAxisValuePower
double getAxisValuePower()
Power to apply to the linear value: val = val^pow- Returns:
- The configured value power.
-
getAxisRoll
int getAxisRoll()
Returns the code of the axis that produces:- Roll rotation in focus mode
- Horizontal lateral movement in free mode
- Returns:
- The axis code, negative if not mapped.
-
getAxisRollSensitivity
double getAxisRollSensitivity()
Sensitivity of roll axis
-
getAxisPitch
int getAxisPitch()
Returns the code of the axis that produces:- Vertical rotation around focus in focus mode
- Vertical look rotation (pitch) in free mode
- Returns:
- The axis code, negative if not mapped.
-
getAxisPitchSensitivity
double getAxisPitchSensitivity()
Sensitivity of pitch axis
-
getAxisYaw
int getAxisYaw()
Returns the code of the axis that produces:- Horizontal rotation around focus in focus mode
- Horizontal look rotation (yaw) in free mode
- Returns:
- The axis code, negative if not mapped.
-
getAxisYawSensitivity
double getAxisYawSensitivity()
Sensitivity of yaw axis
-
getAxisMove
int getAxisMove()
Returns the code of the axis that controls the forward and backward movement- Returns:
- The axis code, negative if not mapped.
-
getAxisMoveSensitivity
double getAxisMoveSensitivity()
Sensitivity of move axis
-
getAxisVelocityUp
int getAxisVelocityUp()
Returns the code of the axis used to increase the velocity. All the range of the axis is used. Usually mapped to a trigger button.- Returns:
- The axis code, negative if not mapped.
-
getAxisVelUpSensitivity
double getAxisVelUpSensitivity()
Sensitivity of velocity up axis
-
getAxisVelocityDown
int getAxisVelocityDown()
Returns the code of the axis used to decrease the velocity. All the range of the axis is used. Usually mapped to a trigger button.- Returns:
- The axis code, negative if not mapped.
-
getAxisVelDownSensitivity
double getAxisVelDownSensitivity()
Sensitivity of velocity down axis
-
getButtonVelocityMultiplierTenth
int getButtonVelocityMultiplierTenth()
Returns the code of the button that, when pressed, multiplies the velocity vector by 0.1.- Returns:
- The button code, negative if not mapped.
-
getButtonVelocityMultiplierHalf
int getButtonVelocityMultiplierHalf()
Returns the code of the button that, when pressed, multiplies the velocity vector by 0.5.- Returns:
- The button code, negative if not mapped.
-
getButtonVelocityUp
int getButtonVelocityUp()
Returns the code of the button used to increase the velocity.- Returns:
- The button code, negative if not mapped.
-
getButtonVelocityDown
int getButtonVelocityDown()
Returns the code of the button used to decrease the velocity.- Returns:
- The button code, negative if not mapped.
-
getButtonUp
int getButtonUp()
Returns the code of the button used to go up.- Returns:
- The button code, negative if not mapped.
-
getButtonDown
int getButtonDown()
Returns the code of the button used to go down.- Returns:
- The button code, negative if not mapped.
-
getButtonModeToggle
int getButtonModeToggle()
Returns the code of the button used to toggle between free and focus mode.- Returns:
- The button code, negative if not mapped.
-
-