Mir
Macros | Enumerations | Functions
input_event.cpp File Reference
#include "mir/event_type_to_string.h"
#include "mir/log.h"
#include "mir_toolkit/events/input/input_event.h"
#include <assert.h>
#include <stdlib.h>
Include dependency graph for input_event.cpp:

Macros

#define MIR_INCLUDE_DEPRECATED_EVENT_HEADER
 
#define MIR_LOGGING_COMPONENT   "input-event-access"
 
#define MIR_EVENT_ACTION_MASK   0xff
 
#define MIR_EVENT_ACTION_POINTER_INDEX_MASK   0xff00
 
#define MIR_EVENT_ACTION_POINTER_INDEX_SHIFT   8;
 

Enumerations

enum  
 
enum  
 

Functions

MirInputEventType mir_input_event_get_type (MirInputEvent const *ev)
 
MirInputDeviceId mir_input_event_get_device_id (MirInputEvent const *ev)
 
int64_t mir_input_event_get_event_time (MirInputEvent const *ev)
 
MirKeyInputEvent const * mir_input_event_get_key_input_event (MirInputEvent const *ev)
 
MirKeyInputEventAction mir_key_input_event_get_action (MirKeyInputEvent const *kev)
 Retrieve the action which triggered a given key event. More...
 
xkb_keysym_t mir_key_input_event_get_key_code (MirKeyInputEvent const *kev)
 Retrieve the xkb mapped keycode associated with the key acted on. More...
 
int mir_key_input_event_get_scan_code (MirKeyInputEvent const *kev)
 Retrieve the raw hardware scan code associated with the key acted on. More...
 
MirInputEventModifiers mir_key_input_event_get_modifiers (MirKeyInputEvent const *kev)
 Retrieve the modifier keys pressed when the key action occured. More...
 
MirInputEventModifiers mir_touch_input_event_get_modifiers (MirTouchInputEvent const *tev)
 Retrieve the modifier keys pressed when the touch action occured. More...
 
MirTouchInputEvent const * mir_input_event_get_touch_input_event (MirInputEvent const *ev)
 
unsigned int mir_touch_input_event_get_touch_count (MirTouchInputEvent const *event)
 Retrieve the number of touches reported for a given touch event. More...
 
MirTouchInputEventTouchId mir_touch_input_event_get_touch_id (MirTouchInputEvent const *event, size_t touch_index)
 Retrieve the TouchID for a touch at given index. More...
 
MirTouchInputEventTouchAction mir_touch_input_event_get_touch_action (MirTouchInputEvent const *event, size_t touch_index)
 Retrieve the action which occured for a touch at given index. More...
 
MirTouchInputEventTouchTooltype mir_touch_input_event_get_touch_tooltype (MirTouchInputEvent const *event, size_t touch_index)
 Retrieve the tooltype for touch at given index. More...
 
float mir_touch_input_event_get_touch_axis_value (MirTouchInputEvent const *event, size_t touch_index, MirTouchInputEventTouchAxis axis)
 Retrieve the axis value for a given axis on an indexed touch. More...
 
MirPointerInputEvent const * mir_input_event_get_pointer_input_event (MirInputEvent const *ev)
 
MirInputEventModifiers mir_pointer_input_event_get_modifiers (MirPointerInputEvent const *pev)
 Retrieve the modifier keys pressed when the pointer action occured. More...
 
MirPointerInputEventAction mir_pointer_input_event_get_action (MirPointerInputEvent const *pev)
 Retrieve the action which occured to generate a given pointer event. More...
 
bool mir_pointer_input_event_get_button_state (MirPointerInputEvent const *pev, MirPointerInputEventButton button)
 Retrieve the state of a given pointer button when the action occurred. More...
 
float mir_pointer_input_event_get_axis_value (MirPointerInputEvent const *pev, MirPointerInputEventAxis axis)
 Retrieve the axis value reported by a given pointer event. More...
 

Macro Definition Documentation

#define MIR_EVENT_ACTION_MASK   0xff
#define MIR_EVENT_ACTION_POINTER_INDEX_MASK   0xff00
#define MIR_EVENT_ACTION_POINTER_INDEX_SHIFT   8;
#define MIR_INCLUDE_DEPRECATED_EVENT_HEADER
#define MIR_LOGGING_COMPONENT   "input-event-access"

Enumeration Type Documentation

anonymous enum
anonymous enum

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015