Package gaiasky.interafce
Interface IControllerMappings
- All Known Implementing Classes:
AbstractControllerMappings,ControllerMappings
public interface IControllerMappings
-
Method Summary
Modifier and Type Method Description intgetAxisDpadH()Returns the code of the horizontal dpad axis, if existsintgetAxisDpadV()Returns the code of the vertical dpad axis, if existsintgetAxisLstickH()Returns the code of the left stick horizontal axis, that produces: Roll rotation in focus mode Horizontal lateral movement in free modedoublegetAxisLstickHSensitivity()Sensitivity of left stick axisintgetAxisLstickV()Returns the code of the left stick vertical axis, that controls the forward and backward movementdoublegetAxisLstickVSensitivity()Sensitivity of left stick vertical axisintgetAxisLT()Returns the code of the left trigger axis, used to decrease the velocity.doublegetAxisLTSensitivity()Sensitivity of left trigger axisintgetAxisRstickH()Returns the code of the Right stick horizontal axis, that produces: Vertical rotation around focus in focus mode Vertical look rotation (pitch) in free modedoublegetAxisRstickHSensitivity()Sensitivity of pitch axisintgetAxisRstickV()Returns the code of the right stick vertical axis, that produces: Horizontal rotation around focus in focus mode Horizontal look rotation (yaw) in free modedoublegetAxisRstickVSensitivity()Sensitivity of right stick vertical axisintgetAxisRT()Returns the code of the right trigger axis, used to increase the velocity.doublegetAxisRTSensitivity()Sensitivity of right trigger axisdoublegetAxisValuePower()Power to apply to the linear value: val = val^powintgetButtonA()Returns the code of the A buttonintgetButtonB()Returns the code of the B buttonintgetButtonDpadDown()Returns the code of the dpad-down buttonintgetButtonDpadLeft()Returns the code of the dpad-left buttonintgetButtonDpadRight()Returns the code of the dpad-right buttonintgetButtonDpadUp()Returns the code of the dpad-up buttonintgetButtonLB()Returns the code of the LB buttonintgetButtonLstick()Returns the code of the left stick buttonintgetButtonLT()Returns the code of the LT buttonintgetButtonRB()Returns the code of the RB buttonintgetButtonRstick()Returns the code of the right stick buttonintgetButtonRT()Returns the code of the RT buttonintgetButtonSelect()Returns the code of the select buttonintgetButtonStart()Returns the code of the start buttonintgetButtonX()Returns the code of the X buttonintgetButtonY()Returns the code of the Y button
-
Method Details
-
getAxisValuePower
double getAxisValuePower()Power to apply to the linear value: val = val^pow- Returns:
- The configured value power.
-
getAxisLstickH
int getAxisLstickH()Returns the code of the left stick horizontal axis, that produces:- Roll rotation in focus mode
- Horizontal lateral movement in free mode
- Returns:
- The axis code, negative if not mapped.
-
getAxisLstickHSensitivity
double getAxisLstickHSensitivity()Sensitivity of left stick axis -
getAxisRstickH
int getAxisRstickH()Returns the code of the Right stick horizontal 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.
-
getAxisRstickHSensitivity
double getAxisRstickHSensitivity()Sensitivity of pitch axis -
getAxisRstickV
int getAxisRstickV()Returns the code of the right stick vertical 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.
-
getAxisRstickVSensitivity
double getAxisRstickVSensitivity()Sensitivity of right stick vertical axis -
getAxisLstickV
int getAxisLstickV()Returns the code of the left stick vertical axis, that controls the forward and backward movement- Returns:
- The axis code, negative if not mapped.
-
getAxisLstickVSensitivity
double getAxisLstickVSensitivity()Sensitivity of left stick vertical axis -
getAxisRT
int getAxisRT()Returns the code of the right trigger 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.
-
getAxisRTSensitivity
double getAxisRTSensitivity()Sensitivity of right trigger axis -
getAxisLT
int getAxisLT()Returns the code of the left trigger 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.
-
getAxisLTSensitivity
double getAxisLTSensitivity()Sensitivity of left trigger axis -
getButtonY
int getButtonY()Returns the code of the Y button- Returns:
- The Y button code, negative if not mapped.
-
getButtonX
int getButtonX()Returns the code of the X button- Returns:
- The X button code, negative if not mapped.
-
getButtonA
int getButtonA()Returns the code of the A button- Returns:
- The A button code, negative if not mapped.
-
getButtonB
int getButtonB()Returns the code of the B button- Returns:
- The B button code, negative if not mapped.
-
getAxisDpadH
int getAxisDpadH()Returns the code of the horizontal dpad axis, if exists- Returns:
- Horizontal dpad axis code
-
getAxisDpadV
int getAxisDpadV()Returns the code of the vertical dpad axis, if exists- Returns:
- Vertical dpad axis code
-
getButtonDpadUp
int getButtonDpadUp()Returns the code of the dpad-up button- Returns:
- The dpad-up button code, negative if not mapped.
-
getButtonDpadDown
int getButtonDpadDown()Returns the code of the dpad-down button- Returns:
- The dpad-down button code, negative if not mapped.
-
getButtonDpadLeft
int getButtonDpadLeft()Returns the code of the dpad-left button- Returns:
- The dpad-left button code, negative if not mapped.
-
getButtonDpadRight
int getButtonDpadRight()Returns the code of the dpad-right button- Returns:
- The dpad-right button code, negative if not mapped.
-
getButtonLstick
int getButtonLstick()Returns the code of the left stick button- Returns:
- The left stick button code, negative if not mapped.
-
getButtonRstick
int getButtonRstick()Returns the code of the right stick button- Returns:
- The right stick button code, negative if not mapped.
-
getButtonStart
int getButtonStart()Returns the code of the start button- Returns:
- The start button code, negative if not mapped.
-
getButtonSelect
int getButtonSelect()Returns the code of the select button- Returns:
- The select button code, negative if not mapped.
-
getButtonRT
int getButtonRT()Returns the code of the RT button- Returns:
- The RT button code, negative if not mapped.
-
getButtonRB
int getButtonRB()Returns the code of the RB button- Returns:
- The RB button code, negative if not mapped.
-
getButtonLT
int getButtonLT()Returns the code of the LT button- Returns:
- The LT button code, negative if not mapped.
-
getButtonLB
int getButtonLB()Returns the code of the LB button- Returns:
- The LB button code, negative if not mapped.
-