diff options
| author | LC <mathew1800@gmail.com> | 2020-07-08 08:50:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-08 08:50:47 -0400 |
| commit | 87287181dd17156170d601ca5e7c81e66afb6643 (patch) | |
| tree | 70f8e2c226da940af63f2bd534319de6bcab1627 /Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.h | |
| parent | a5166be9952ce3486db9730f8a7e178af4415d66 (diff) | |
| parent | f8e0ececb9668e200eb0fbe932d7f8ddf2728a8b (diff) | |
Merge pull request #8907 from JosJuice/android-overlay-stick-gate
Android: Use octagonal stick gate in overlay
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.h b/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.h index 5d6a19ef78..2139c2e2ca 100644 --- a/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.h +++ b/Source/Core/InputCommon/ControllerInterface/Touch/ButtonManager.h @@ -268,9 +268,16 @@ public: }; void Init(const std::string&); + +// pad_id is numbered 0 to 3 for GC pads and 4 to 7 for Wiimotes bool GetButtonPressed(int pad_id, ButtonType button); float GetAxisValue(int pad_id, ButtonType axis); + +// emu_pad_id is numbered 0 to 3 for both GC pads and Wiimotes +double GetInputRadiusAtAngle(int emu_pad_id, ButtonType stick, double angle); + bool GamepadEvent(const std::string& dev, int button, int action); void GamepadAxisEvent(const std::string& dev, int axis, float value); + void Shutdown(); } // namespace ButtonManager |
