diff options
| author | 2021-11-14 10:45:07 -0600 | |
|---|---|---|
| committer | 2021-11-24 20:30:28 -0600 | |
| commit | bca299e8e0489867f7d4bbfd264e221e7e61ae1e (patch) | |
| tree | 312f145bfcaffa9b7ecc2710443fa3737bf379e4 /src/input_common/input_mapping.h | |
| parent | core/hid: Improve accuracy of the keyboard implementation (diff) | |
| download | yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.tar.gz yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.tar.xz yuzu-bca299e8e0489867f7d4bbfd264e221e7e61ae1e.zip | |
input_common: Allow keyboard to be backwards compatible
Diffstat (limited to 'src/input_common/input_mapping.h')
| -rw-r--r-- | src/input_common/input_mapping.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input_common/input_mapping.h b/src/input_common/input_mapping.h index 2622dba70..44eb8ad9a 100644 --- a/src/input_common/input_mapping.h +++ b/src/input_common/input_mapping.h | |||
| @@ -66,6 +66,13 @@ private: | |||
| 66 | */ | 66 | */ |
| 67 | void RegisterMotion(const MappingData& data); | 67 | void RegisterMotion(const MappingData& data); |
| 68 | 68 | ||
| 69 | /** | ||
| 70 | * Returns true if driver can be mapped | ||
| 71 | * @param "data": An struct containing all the information needed to create a proper | ||
| 72 | * ParamPackage | ||
| 73 | */ | ||
| 74 | bool IsDriverValid(const MappingData& data) const; | ||
| 75 | |||
| 69 | Common::SPSCQueue<Common::ParamPackage> input_queue; | 76 | Common::SPSCQueue<Common::ParamPackage> input_queue; |
| 70 | Polling::InputType input_type{Polling::InputType::None}; | 77 | Polling::InputType input_type{Polling::InputType::None}; |
| 71 | bool is_enabled{}; | 78 | bool is_enabled{}; |