Returns -1 if axis_code is not hi-res */
| 128 | |
| 129 | /* Returns -1 if axis_code is not hi-res */ |
| 130 | int 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 | |
| 144 | std::string InputDevice::_toEventName(uint type, uint code) { |
| 145 | const char* ret = libevdev_event_code_get_name(type, code); |
nothing calls this directly
no outgoing calls
no test coverage detected