diff options
| author | bunnei <bunneidev@gmail.com> | 2022-12-17 17:16:13 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-17 17:16:13 -0800 |
| commit | 48108a8c9b28e08f86aab5c2ad41414e455f4706 (patch) | |
| tree | 2dc3ff390a17ebdee32958eac619632cef424fe4 /src/input_common/main.h | |
| parent | 5da72a891fb4c4ddddbeefc0b235079fa3830743 (diff) | |
| parent | 243404bf34b1470369e1d0f5f2dd18ac02435273 (diff) | |
Merge pull request #9456 from german77/virtual_gamepad
input_common: Add virtual gamepad
Diffstat (limited to 'src/input_common/main.h')
| -rw-r--r-- | src/input_common/main.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input_common/main.h b/src/input_common/main.h index 6218c37f6..1207d786c 100644 --- a/src/input_common/main.h +++ b/src/input_common/main.h @@ -34,6 +34,7 @@ class Keyboard; class Mouse; class TouchScreen; class VirtualAmiibo; +class VirtualGamepad; struct MappingData; } // namespace InputCommon @@ -108,6 +109,12 @@ public: /// Retrieves the underlying virtual amiibo input device. [[nodiscard]] const VirtualAmiibo* GetVirtualAmiibo() const; + /// Retrieves the underlying virtual gamepad input device. + [[nodiscard]] VirtualGamepad* GetVirtualGamepad(); + + /// Retrieves the underlying virtual gamepad input device. + [[nodiscard]] const VirtualGamepad* GetVirtualGamepad() const; + /** * Returns all available input devices that this Factory can create a new device with. * Each returned ParamPackage should have a `display` field used for display, a `engine` field |
