MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / ButtonInfo

Class ButtonInfo

src/ButtonHandler/ButtonHandler.hpp:208–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206 * absolute timestamp about its reception.
207 */
208 struct ButtonInfo
209 {
210 ButtonId buttonId; /**< The id of the button. */
211 ButtonState state; /**< Button state. */
212 bool firstTime; /**< First time in the state. */
213 uint32_t timestamp; /**< Timestamp about button state reception in ms. */
214
215 ButtonInfo() :
216 buttonId(BUTTON_ID_CNT),
217 state(BUTTON_STATE_NC),
218 firstTime(true),
219 timestamp(0U)
220 {
221 }
222 };
223
224 Queue<ButtonInfo> m_stateQueue; /**< Button info queue */
225 ButtonInfo m_lastButtonInfo[BUTTON_ID_CNT]; /**< Last handled button info */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected