Add Axis gesture

This commit is contained in:
pixl
2020-07-11 23:14:32 -04:00
parent ecfd03fd21
commit 10bb10e5c5
5 changed files with 188 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ uint InputDevice::toKeyCode(std::string name)
uint InputDevice::toAxisCode(std::string name)
{
return _toEventCode(EV_KEY, std::move(name));
return _toEventCode(EV_REL, std::move(name));
}
uint InputDevice::_toEventCode(uint type, const std::string& name)