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 int
getAxisMove()
Returns the code of the axis that controls the forward and backward movementdouble
getAxisMoveSensitivity()
Sensitivity of move axisint
getAxisPitch()
Returns the code of the axis that produces: Vertical rotation around focus in focus mode Vertical look rotation (pitch) in free modedouble
getAxisPitchSensitivity()
Sensitivity of pitch axisint
getAxisRoll()
Returns the code of the axis that produces: Roll rotation in focus mode Horizontal lateral movement in free modedouble
getAxisRollSensitivity()
Sensitivity of roll axisdouble
getAxisValuePower()
Power to apply to the linear value: val = val^powdouble
getAxisVelDownSensitivity()
Sensitivity of velocity down axisint
getAxisVelocityDown()
Returns the code of the axis used to decrease the velocity.int
getAxisVelocityUp()
Returns the code of the axis used to increase the velocity.double
getAxisVelUpSensitivity()
Sensitivity of velocity up axisint
getAxisYaw()
Returns the code of the axis that produces: Horizontal rotation around focus in focus mode Horizontal look rotation (yaw) in free modedouble
getAxisYawSensitivity()
Sensitivity of yaw axisint
getButtonDown()
Returns the code of the button used to go down.int
getButtonModeToggle()
Returns the code of the button used to toggle between free and focus mode.int
getButtonUp()
Returns the code of the button used to go up.int
getButtonVelocityDown()
Returns the code of the button used to decrease the velocity.int
getButtonVelocityMultiplierHalf()
Returns the code of the button that, when pressed, multiplies the velocity vector by 0.5.int
getButtonVelocityMultiplierTenth()
Returns the code of the button that, when pressed, multiplies the velocity vector by 0.1.int
getButtonVelocityUp()
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.
-
-