| 5970 | } |
| 5971 | |
| 5972 | BYTE QKeyMapper_Worker::MouseButtonStringToHIDButton(const QString &mouseButton, int keyupdown) |
| 5973 | { |
| 5974 | Q_UNUSED(keyupdown); |
| 5975 | |
| 5976 | // Map mouse button string to HID button bit |
| 5977 | if (mouseButton == "Mouse-L") { |
| 5978 | return FAKERINPUT_MOUSE_BUTTON_LEFT; |
| 5979 | } else if (mouseButton == "Mouse-R") { |
| 5980 | return FAKERINPUT_MOUSE_BUTTON_RIGHT; |
| 5981 | } else if (mouseButton == "Mouse-M") { |
| 5982 | return FAKERINPUT_MOUSE_BUTTON_MIDDLE; |
| 5983 | } else if (mouseButton == "Mouse-X1") { |
| 5984 | return FAKERINPUT_MOUSE_BUTTON_X1; |
| 5985 | } else if (mouseButton == "Mouse-X2") { |
| 5986 | return FAKERINPUT_MOUSE_BUTTON_X2; |
| 5987 | } |
| 5988 | return 0; // Unknown button |
| 5989 | } |
| 5990 | |
| 5991 | void QKeyMapper_Worker::resetFakerInputMouseReport(void) |
| 5992 | { |
nothing calls this directly
no outgoing calls
no test coverage detected