Function mir_input_device_state_event_pointer_buttons¶
Defined in File input_device_state_event.h
Function Documentation¶
-
MirPointerButtons mir_input_device_state_event_pointer_buttons(MirInputDeviceStateEvent const *ev)¶
MirInputDeviceStateEvent informs clients about the current state of the input devices.
This is necessary when the client did not receive the most recent input events. The event is sent when the server was resumed after a pause, or when the client just received the input focus.
The event contains a single pointer button state and the current cursor position and the pressed modifier keys. Additionally for key and pointer devices the pressed keys and buttons are supplied individually. Retrieve the button state.
- Parameters:
ev – [in] The input device state event
- Returns:
The combined pointer button state