Events that come from switch devices.
More...
Events that come from switch devices.
◆ libinput_event_switch_get_base_event()
◆ libinput_event_switch_get_switch()
Return the switch that triggered this event. For pointer events that are not of type LIBINPUT_EVENT_SWITCH_TOGGLE, this function returns 0.
- Note
- It is an application bug to call this function for events other than LIBINPUT_EVENT_SWITCH_TOGGLE.
- Parameters
-
event | The libinput switch event |
- Returns
- The switch triggering this event
- Since
- 1.7
◆ libinput_event_switch_get_switch_state()
Return the switch state that triggered this event. For switch events that are not of type LIBINPUT_EVENT_SWITCH_TOGGLE, this function returns 0.
- Note
- It is an application bug to call this function for events other than LIBINPUT_EVENT_SWITCH_TOGGLE.
- Parameters
-
event | The libinput switch event |
- Returns
- The switch state triggering this event
- Since
- 1.7
◆ libinput_event_switch_get_time()
- Note
- Timestamps may not always increase. See the libinput documentation for more details.
- Parameters
-
event | The libinput switch event |
- Returns
- The event time for this event
- Since
- 1.7
◆ libinput_event_switch_get_time_usec()
- Note
- Timestamps may not always increase. See the libinput documentation for more details.
- Parameters
-
event | The libinput switch event |
- Returns
- The event time for this event in microseconds
- Since
- 1.7