1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-28 15:06:31 -05:00

input_common: Add virtual gamepad

This commit is contained in:
german77
2022-12-16 16:16:54 -06:00
committed by Narr the Reg
parent bbb202ceed
commit 243404bf34
7 changed files with 274 additions and 0 deletions

View File

@@ -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