MCPcopy Create free account
hub / github.com/PixlOne/logiops / getLowResAxis

Method getLowResAxis

src/logid/InputDevice.cpp:130–142  ·  view source on GitHub ↗

Returns -1 if axis_code is not hi-res */

Source from the content-addressed store, hash-verified

128
129/* Returns -1 if axis_code is not hi-res */
130int InputDevice::getLowResAxis(const uint axis_code) {
131 /* Some systems don't have these hi-res axes */
132#ifdef REL_WHEEL_HI_RES
133 if (axis_code == REL_WHEEL_HI_RES)
134 return REL_WHEEL;
135#endif
136#ifdef REL_HWHEEL_HI_RES
137 if (axis_code == REL_HWHEEL_HI_RES)
138 return REL_HWHEEL;
139#endif
140
141 return -1;
142}
143
144std::string InputDevice::_toEventName(uint type, uint code) {
145 const char* ret = libevdev_event_code_get_name(type, code);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected