diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2024-11-02 17:10:45 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2024-11-03 15:06:50 -0600 |
| commit | 2f1390e9f9706a3c5c0bc46df17006ddf98d4cec (patch) | |
| tree | 5aa254e9681de0ff931ab8dc268e5c56353ecac7 /Source/Core/InputCommon/ControllerInterface/CoreDevice.h | |
| parent | 53ede795a2a7406872f0f5c872c7f67bd22f65e4 (diff) | |
InputCommon: Rename AddAnalogInputs to AddFullAnalogSurfaceInputs.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h index 33a322861b..b34e6a9d15 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h @@ -178,13 +178,14 @@ protected: Input& m_high; }; - void AddAnalogInputs(Input* low, Input* high) - { - AddInput(low); - AddInput(high); - AddInput(new FullAnalogSurface(low, high)); - AddInput(new FullAnalogSurface(high, low)); - } + // Pass Inputs for center-neutral (- and +) directions of some axis. + // This function adds those Inputs and also a FullAnalogSurface Input for each direction. + // This is only needed when it's not known if the particular axis is neutral in the center + // or neutral on one of the extremes. + // Some e.g. DInput devices expose a trigger across the full analog surface + // but we have no way of knowing this until the user actually maps the Input, + // so both center-neutral and full-surface Inputs need to be created in that case. + void AddFullAnalogSurfaceInputs(Input* low, Input* high); void AddCombinedInput(std::string name, const std::pair<std::string, std::string>& inputs); |
