Mir
Typedefs | Enumerations | Functions
input_event.h File Reference
#include "mir_toolkit/events/event.h"
#include "mir_toolkit/mir_input_device_types.h"
#include <stdint.h>
#include <stdbool.h>
#include "mir_toolkit/events/input/touch_event.h"
#include "mir_toolkit/events/input/keyboard_event.h"
#include "mir_toolkit/events/input/pointer_event.h"
Include dependency graph for input_event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef unsigned int MirInputEventModifiers
 

Enumerations

enum  MirInputEventType { mir_input_event_type_key = 0, mir_input_event_type_touch = 1, mir_input_event_type_pointer = 2, mir_input_event_types }
 
enum  MirInputEventModifier {
  mir_input_event_modifier_none = 1 << 0, mir_input_event_modifier_alt = 1 << 1, mir_input_event_modifier_alt_left = 1 << 2, mir_input_event_modifier_alt_right = 1 << 3,
  mir_input_event_modifier_shift = 1 << 4, mir_input_event_modifier_shift_left = 1 << 5, mir_input_event_modifier_shift_right = 1 << 6, mir_input_event_modifier_sym = 1 << 7,
  mir_input_event_modifier_function = 1 << 8, mir_input_event_modifier_ctrl = 1 << 9, mir_input_event_modifier_ctrl_left = 1 << 10, mir_input_event_modifier_ctrl_right = 1 << 11,
  mir_input_event_modifier_meta = 1 << 12, mir_input_event_modifier_meta_left = 1 << 13, mir_input_event_modifier_meta_right = 1 << 14, mir_input_event_modifier_caps_lock = 1 << 15,
  mir_input_event_modifier_num_lock = 1 << 16, mir_input_event_modifier_scroll_lock = 1 << 17
}
 Description of key modifier state. More...
 

Functions

MirInputDeviceId mir_input_event_get_device_id (MirInputEvent const *event)
 Retrieves the device id responsible for generating an input event. More...
 
int64_t mir_input_event_get_event_time (MirInputEvent const *event)
 Retrieve the time at which an input event occurred. More...
 
MirInputEventType mir_input_event_get_type (MirInputEvent const *event)
 Retrieve the type of an input event. More...
 
MirKeyboardEvent const * mir_input_event_get_keyboard_event (MirInputEvent const *event)
 Retrieve the MirKeyboardEvent associated with a given input event. More...
 
MirTouchEvent const * mir_input_event_get_touch_event (MirInputEvent const *event)
 Retrieve the MirTouchEvent associated with a given input event. More...
 
MirPointerEvent const * mir_input_event_get_pointer_event (MirInputEvent const *event)
 Retrieve the MirPointerEvent associated with a given input event. More...
 
bool mir_input_event_has_cookie (MirInputEvent const *ev)
 Query if an input event contains a cookie. More...
 
MirCookie const * mir_input_event_get_cookie (MirInputEvent const *ev)
 Returns the cookie associated with an input event. More...
 

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:05:03 UTC 2017