MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / disableFlashes

Method disableFlashes

src/joysensorbuttonpushbutton.cpp:51–59  ·  view source on GitHub ↗

* @brief Disables highlight when the sensor axis is moved */

Source from the content-addressed store, hash-verified

49 * @brief Disables highlight when the sensor axis is moved
50 */
51void JoySensorButtonPushButton::disableFlashes()
52{
53 if (m_button != nullptr)
54 {
55 disconnect(m_button, &JoySensorButton::clicked, this, &JoySensorButtonPushButton::flash);
56 disconnect(m_button, &JoySensorButton::released, this, &JoySensorButtonPushButton::unflash);
57 }
58 unflash();
59}
60
61/**
62 * @brief Enables highlight when the sensor axis is moved

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected