Lines Matching refs:RotateEvent
34 * @brief Declares a <b>RotateEvent</b>, which usually occurs on a knob.
44 * @brief Defines a <b>RotateEvent</b>, which usually occurs on a knob.
49 class RotateEvent : public Event {
51 RotateEvent() = delete;
54 * @brief A constructor used to create a <b>RotateEvent</b> instance.
55 * @param rotate Indicates the short data representing the number reported by a <b>RotateEvent</b>.
60 RotateEvent(int16_t rotate) : rotate_(static_cast<int16_t>(rotate * ROTATE_SENSITIVITY)) {} // Rotation direction
62 ~RotateEvent() {}
65 * @brief Obtains the number reported by a <b>RotateEvent</b>.
66 * @return Returns the number reported by a <b>RotateEvent</b>.