Package gaiasky.gui
Class GamepadMappings
java.lang.Object
gaiasky.gui.AbstractGamepadMappings
gaiasky.gui.GamepadMappings
- All Implemented Interfaces:
IGamepadMappings
-
Field Summary
Fields inherited from class gaiasky.gui.AbstractGamepadMappings
AXIS_DPAD_H, AXIS_DPAD_V, AXIS_LB, AXIS_LSTICK_H, AXIS_LSTICK_H_SENS, AXIS_LSTICK_V, AXIS_LSTICK_V_SENS, AXIS_LT, AXIS_LT_SENS, AXIS_RB, AXIS_RSTICK_H, AXIS_RSTICK_H_SENS, AXIS_RSTICK_V, AXIS_RSTICK_V_SENS, AXIS_RT, AXIS_RT_SENS, AXIS_VALUE_POW, BUTTON_A, BUTTON_B, BUTTON_DPAD_DOWN, BUTTON_DPAD_LEFT, BUTTON_DPAD_RIGHT, BUTTON_DPAD_UP, BUTTON_LB, BUTTON_LSTICK, BUTTON_LT, BUTTON_RB, BUTTON_RSTICK, BUTTON_RT, BUTTON_SELECT, BUTTON_START, BUTTON_X, BUTTON_Y, logger, ZERO_POINT
-
Constructor Summary
ConstructorDescriptionGamepadMappings
(String controllerName) Create empty controller mappings.GamepadMappings
(String controllerName, Path mappingsFile) Create a controller mappings instance from a *.controller file -
Method Summary
Methods inherited from class gaiasky.gui.AbstractGamepadMappings
getAxisDpadH, getAxisDpadV, getAxisLB, getAxisLstickH, getAxisLstickHSensitivity, getAxisLstickV, getAxisLstickVSensitivity, getAxisLT, getAxisLTSensitivity, getAxisRB, getAxisRstickH, getAxisRstickHSensitivity, getAxisRstickV, getAxisRstickVSensitivity, getAxisRT, getAxisRTSensitivity, getAxisValuePower, getButtonA, getButtonB, getButtonDpadDown, getButtonDpadLeft, getButtonDpadRight, getButtonDpadUp, getButtonLB, getButtonLstick, getButtonLT, getButtonRB, getButtonRstick, getButtonRT, getButtonSelect, getButtonStart, getButtonX, getButtonY, getZeroPoint, readGamepadMappings
-
Constructor Details
-
GamepadMappings
Create empty controller mappings. -
GamepadMappings
Create a controller mappings instance from a *.controller file- Parameters:
controllerName
- Controller name, or nullmappingsFile
- The mappings file
-
-
Method Details
-
persist
Persist the current mappings to the given path- Parameters:
path
- Pointer to the file- Returns:
- True if operation succeeded
-