Function miral::toolkit::mir_pointer_event_button_state

Function Documentation

bool miral::toolkit::mir_pointer_event_button_state(MirPointerEvent const *event, MirPointerButton button)

Retrieve the state of a given pointer button when the action occurred.

Parameters:
  • event[in] The pointer event

  • button[in] The button to check

Returns:

Whether the given button is depressed