mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 14:48:01 -05:00
HID: use ButtonDevice
This commit is contained in:
@ -94,4 +94,10 @@ std::unique_ptr<InputDeviceType> CreateDevice(const std::string& params) {
|
||||
return pair->second->Create(package);
|
||||
}
|
||||
|
||||
/**
|
||||
* A button device is an input device that returns bool as status.
|
||||
* true for pressed; false for released.
|
||||
*/
|
||||
using ButtonDevice = InputDevice<bool>;
|
||||
|
||||
} // namespace Input
|
||||
|
Reference in New Issue
Block a user