Mir
|
#include <stdbool.h>
Go to the source code of this file.
Typedefs | |
typedef struct MirPointerEvent | MirPointerEvent |
An event type describing a change in pointer device state. More... | |
typedef unsigned int | MirPointerButtons |
Enumerations | |
enum | MirPointerAction { mir_pointer_action_button_up = 0, mir_pointer_action_button_down = 1, mir_pointer_action_enter = 2, mir_pointer_action_leave = 3, mir_pointer_action_motion = 4, mir_pointer_actions } |
Possible pointer actions. More... | |
enum | MirPointerAxis { mir_pointer_axis_x = 0, mir_pointer_axis_y = 1, mir_pointer_axis_vscroll = 2, mir_pointer_axis_hscroll = 3, mir_pointer_axis_relative_x = 4, mir_pointer_axis_relative_y = 5, mir_pointer_axes } |
Identifiers for pointer axis. More... | |
enum | MirPointerButton { mir_pointer_button_primary = 1 << 0, mir_pointer_button_secondary = 1 << 1, mir_pointer_button_tertiary = 1 << 2, mir_pointer_button_back = 1 << 3, mir_pointer_button_forward = 1 << 4, mir_pointer_button_side = 1 << 5, mir_pointer_button_extra = 1 << 6, mir_pointer_button_task = 1 << 7 } |
Functions | |
MirInputEventModifiers | mir_pointer_event_modifiers (MirPointerEvent const *event) |
Retrieve the modifier keys pressed when the pointer action occured. More... | |
MirPointerAction | mir_pointer_event_action (MirPointerEvent const *event) |
Retrieve the action which occured to generate a given pointer event. More... | |
bool | mir_pointer_event_button_state (MirPointerEvent const *event, MirPointerButton button) |
Retrieve the state of a given pointer button when the action occurred. More... | |
MirPointerButtons | mir_pointer_event_buttons (MirPointerEvent const *event) |
Retreive the pointer button state as a masked set of values. More... | |
float | mir_pointer_event_axis_value (MirPointerEvent const *event, MirPointerAxis axis) |
Retrieve the axis value reported by a given pointer event. More... | |
MirInputEvent const * | mir_pointer_event_input_event (MirPointerEvent const *event) |
Retrieve the corresponding input event. More... | |
Copyright © 2012-2020
Canonical Ltd.
Generated on Thu Apr 16 16:51:04 UTC 2020
This documentation is licensed under the GPL version 2 or 3.