diff options
| author | 2020-09-23 15:55:26 -0700 | |
|---|---|---|
| committer | 2020-09-23 15:55:26 -0700 | |
| commit | 10e8acc4513b0f286fd485aa366cd8b7900c63ca (patch) | |
| tree | 4e7a3cbe17ed34736530bb4ec61e2fe6a181afa2 /src/input_common/gcadapter/gc_adapter.h | |
| parent | Merge pull request #4702 from lioncash/doc-warn (diff) | |
| parent | Add automap feature for GC adapter (diff) | |
| download | yuzu-10e8acc4513b0f286fd485aa366cd8b7900c63ca.tar.gz yuzu-10e8acc4513b0f286fd485aa366cd8b7900c63ca.tar.xz yuzu-10e8acc4513b0f286fd485aa366cd8b7900c63ca.zip | |
Merge pull request #4618 from german77/GcAdapterAutoMap
Add automap feature for GC adapter
Diffstat (limited to 'src/input_common/gcadapter/gc_adapter.h')
| -rw-r--r-- | src/input_common/gcadapter/gc_adapter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.h b/src/input_common/gcadapter/gc_adapter.h index 20e97d283..75bf9fe74 100644 --- a/src/input_common/gcadapter/gc_adapter.h +++ b/src/input_common/gcadapter/gc_adapter.h | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include <unordered_map> | 10 | #include <unordered_map> |
| 11 | #include "common/common_types.h" | 11 | #include "common/common_types.h" |
| 12 | #include "common/threadsafe_queue.h" | 12 | #include "common/threadsafe_queue.h" |
| 13 | #include "input_common/main.h" | ||
| 13 | 14 | ||
| 14 | struct libusb_context; | 15 | struct libusb_context; |
| 15 | struct libusb_device; | 16 | struct libusb_device; |
| @@ -75,6 +76,10 @@ public: | |||
| 75 | void BeginConfiguration(); | 76 | void BeginConfiguration(); |
| 76 | void EndConfiguration(); | 77 | void EndConfiguration(); |
| 77 | 78 | ||
| 79 | std::vector<Common::ParamPackage> GetInputDevices() const; | ||
| 80 | InputCommon::ButtonMapping GetButtonMappingForDevice(const Common::ParamPackage& params) const; | ||
| 81 | InputCommon::AnalogMapping GetAnalogMappingForDevice(const Common::ParamPackage& params) const; | ||
| 82 | |||
| 78 | /// Returns true if there is a device connected to port | 83 | /// Returns true if there is a device connected to port |
| 79 | bool DeviceConnected(std::size_t port) const; | 84 | bool DeviceConnected(std::size_t port) const; |
| 80 | 85 | ||