|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
Classic / Modern gamepad layouts (Input tab). More...
#include <cstring>#include <string>Go to the source code of this file.
Classes | |
| struct | cLuxPadBinding |
| class | cLuxSprintToggle |
| L3 sprint: a click toggles it; it ends once you have moved and then stopped. More... | |
Macros | |
| #define | LUX_PAD_A "GamepadButton.Button A" |
| #define | LUX_PAD_B "GamepadButton.Button B" |
| #define | LUX_PAD_X "GamepadButton.Button X" |
| #define | LUX_PAD_Y "GamepadButton.Button Y" |
| #define | LUX_PAD_LB "GamepadButton.Button LeftShoulder" |
| #define | LUX_PAD_RB "GamepadButton.Button RightShoulder" |
| #define | LUX_PAD_VIEW "GamepadButton.Button Back" |
| #define | LUX_PAD_L3 "GamepadButton.Button LeftStick" |
| #define | LUX_PAD_R3 "GamepadButton.Button RightStick" |
| #define | LUX_PAD_LEFT "GamepadHat.Hat 0.Left" |
| #define | LUX_PAD_RIGHT "GamepadHat.Hat 0.Right" |
| #define | LUX_PAD_LT "GamepadAxis.Axis LeftTrigger.Positive" |
| #define | LUX_PAD_RT "GamepadAxis.Axis RightTrigger.Positive" |
| #define | LUX_PAD_MOVE { "Forward", "GamepadAxis.Axis LeftY.Negative" }, { "Backward", "GamepadAxis.Axis LeftY.Positive" }, { "Right", "GamepadAxis.Axis LeftX.Positive" }, { "Left", "GamepadAxis.Axis LeftX.Negative" } |
Enumerations | |
| enum | eLuxPadLayout { eLuxPadLayout_Classic , eLuxPadLayout_Modern , eLuxPadLayout_LastEnum } |
Functions | |
| int | LuxPadLayoutCount (int alLayout) |
| const cLuxPadBinding & | LuxPadLayoutAt (int alLayout, int alIdx) |
| const char * | LuxPadLayoutInput (int alLayout, const char *asAction) |
| The layout's gamepad input for an action, "" for none, NULL if the layout leaves it alone. | |
| bool | LuxPadLayoutSprintToggle (int alLayout) |
| Modern sprints with an L3 click instead of holding a trigger. | |
| void | LuxMergePadInput (const std::string &asPrimary, const std::string &asSecondary, const std::string &asPad, std::string &asOutPrimary, std::string &asOutSecondary) |
| New Primary / Secondary for an action: its non-gamepad inputs first, then asPad (if any). | |
Variables | |
| static const cLuxPadBinding | gvLuxPadClassic [] |
| static const cLuxPadBinding | gvLuxPadModern [] |
| static const int | kLuxPadLayoutRevision = 3 |
| Bumped when a layout changes, so profiles on that layout get it again once. | |
Classic / Modern gamepad layouts (Input tab).
A layout sets the gamepad input of each listed action in the profile's user_keys.cfg; keyboard / mouse bindings are kept. Pure data and string logic, unit tested in tests/cpp/test_pad_layout.cpp.
Modern (user approved): RT interact, LT lean, RB throw, Y journal, L3 sprint toggle, plus aliases added at load (not saved): View journal, D-pad up lantern.
Definition in file LuxPadLayout.h.
| #define LUX_PAD_A "GamepadButton.Button A" |
Definition at line 52 of file LuxPadLayout.h.
| #define LUX_PAD_B "GamepadButton.Button B" |
Definition at line 53 of file LuxPadLayout.h.
| #define LUX_PAD_X "GamepadButton.Button X" |
Definition at line 54 of file LuxPadLayout.h.
| #define LUX_PAD_Y "GamepadButton.Button Y" |
Definition at line 55 of file LuxPadLayout.h.
| #define LUX_PAD_LB "GamepadButton.Button LeftShoulder" |
Definition at line 56 of file LuxPadLayout.h.
| #define LUX_PAD_RB "GamepadButton.Button RightShoulder" |
Definition at line 57 of file LuxPadLayout.h.
| #define LUX_PAD_VIEW "GamepadButton.Button Back" |
Definition at line 58 of file LuxPadLayout.h.
| #define LUX_PAD_L3 "GamepadButton.Button LeftStick" |
Definition at line 59 of file LuxPadLayout.h.
| #define LUX_PAD_R3 "GamepadButton.Button RightStick" |
Definition at line 60 of file LuxPadLayout.h.
| #define LUX_PAD_LEFT "GamepadHat.Hat 0.Left" |
Definition at line 61 of file LuxPadLayout.h.
| #define LUX_PAD_RIGHT "GamepadHat.Hat 0.Right" |
Definition at line 62 of file LuxPadLayout.h.
| #define LUX_PAD_LT "GamepadAxis.Axis LeftTrigger.Positive" |
Definition at line 63 of file LuxPadLayout.h.
| #define LUX_PAD_RT "GamepadAxis.Axis RightTrigger.Positive" |
Definition at line 64 of file LuxPadLayout.h.
| #define LUX_PAD_MOVE { "Forward", "GamepadAxis.Axis LeftY.Negative" }, { "Backward", "GamepadAxis.Axis LeftY.Positive" }, { "Right", "GamepadAxis.Axis LeftX.Positive" }, { "Left", "GamepadAxis.Axis LeftX.Negative" } |
Definition at line 66 of file LuxPadLayout.h.
| enum eLuxPadLayout |
| Enumerator | |
|---|---|
| eLuxPadLayout_Classic | |
| eLuxPadLayout_Modern | |
| eLuxPadLayout_LastEnum | |
Definition at line 15 of file LuxPadLayout.h.
|
inline |
Definition at line 97 of file LuxPadLayout.h.
|
inline |
Definition at line 103 of file LuxPadLayout.h.
|
inline |
The layout's gamepad input for an action, "" for none, NULL if the layout leaves it alone.
Definition at line 109 of file LuxPadLayout.h.
|
inline |
Modern sprints with an L3 click instead of holding a trigger.
Definition at line 117 of file LuxPadLayout.h.
|
inline |
New Primary / Secondary for an action: its non-gamepad inputs first, then asPad (if any).
Definition at line 120 of file LuxPadLayout.h.
|
static |
Definition at line 69 of file LuxPadLayout.h.
|
static |
Definition at line 80 of file LuxPadLayout.h.
|
static |
Bumped when a layout changes, so profiles on that layout get it again once.
2: Modern journal moved from View to Y (View stays, as an alias).
Definition at line 95 of file LuxPadLayout.h.