diff options
| author | 2017-01-20 22:46:39 +0200 | |
|---|---|---|
| committer | 2017-03-01 23:30:57 +0200 | |
| commit | 1d1329af23221be31c244889609415e0fb0b2641 (patch) | |
| tree | 4206317bc0e2078b1a1d4eef808e2bd475c47512 /src/core/frontend/input.h | |
| parent | Input: add device and factory template (diff) | |
| download | yuzu-1d1329af23221be31c244889609415e0fb0b2641.tar.gz yuzu-1d1329af23221be31c244889609415e0fb0b2641.tar.xz yuzu-1d1329af23221be31c244889609415e0fb0b2641.zip | |
HID: use ButtonDevice
Diffstat (limited to 'src/core/frontend/input.h')
| -rw-r--r-- | src/core/frontend/input.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h index a0c51df0c..63e64ac67 100644 --- a/src/core/frontend/input.h +++ b/src/core/frontend/input.h | |||
| @@ -94,4 +94,10 @@ std::unique_ptr<InputDeviceType> CreateDevice(const std::string& params) { | |||
| 94 | return pair->second->Create(package); | 94 | return pair->second->Create(package); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | /** | ||
| 98 | * A button device is an input device that returns bool as status. | ||
| 99 | * true for pressed; false for released. | ||
| 100 | */ | ||
| 101 | using ButtonDevice = InputDevice<bool>; | ||
| 102 | |||
| 97 | } // namespace Input | 103 | } // namespace Input |