| 1010 | } |
| 1011 | |
| 1012 | QBitArray InputDaemon::createUnplugEventBitArray(InputDevice *device) |
| 1013 | { |
| 1014 | InputDeviceBitArrayStatus tempStatus(device, false, this); |
| 1015 | |
| 1016 | for (int i = 0; i < device->getNumberRawAxes(); i++) |
| 1017 | { |
| 1018 | JoyAxis *axis = device->getActiveSetJoystick()->getJoyAxis(i); |
| 1019 | |
| 1020 | if ((axis != nullptr) && (axis->getThrottle() != static_cast<int>(JoyAxis::NormalThrottle))) |
| 1021 | tempStatus.changeAxesStatus(i, true); |
| 1022 | } |
| 1023 | |
| 1024 | QBitArray unplugBitArray = tempStatus.generateFinalBitArray(); |
| 1025 | return unplugBitArray; |
| 1026 | } |
| 1027 | |
| 1028 | /** |
| 1029 | * @brief Dispatches postprocessed SDL events to the input objects like |
nothing calls this directly
no test coverage detected