HID: use ButtonDevice

This commit is contained in:
wwylele 2017-01-20 22:46:39 +02:00
parent 3974895e08
commit 1d1329af23
5 changed files with 100 additions and 1 deletions

View file

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