| 607 | } |
| 608 | |
| 609 | void SetJoystick::propagateSetSensorButtonClick(int button) |
| 610 | { |
| 611 | JoySensorButton *sensorButton = qobject_cast<JoySensorButton *>(sender()); |
| 612 | |
| 613 | if (sensorButton != nullptr) |
| 614 | { |
| 615 | JoySensor *sensor = sensorButton->getSensor(); |
| 616 | |
| 617 | if (sensor && !sensorButton->getIgnoreEventState()) |
| 618 | emit setSensorButtonClick(m_index, sensor->getType(), static_cast<JoySensorDirection>(button)); |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | void SetJoystick::propagateSetSensorButtonRelease(int button) |
| 623 | { |
nothing calls this directly
no test coverage detected