Mir
Macros | Enumerations | Functions
input_event.cpp File Reference
#include "mir/cookie/cookie.h"
#include "mir/event_type_to_string.h"
#include "mir/events/event_private.h"
#include "mir/log.h"
#include "mir/require.h"
#include "mir_toolkit/mir_cookie.h"
#include "../mir_cookie.h"
#include <string.h>
Include dependency graph for input_event.cpp:

Macros

#define MIR_LOG_COMPONENT   "input-event-access"
 

Enumerations

enum  
 
enum  
 

Functions

MirInputEventType mir_input_event_get_type (MirInputEvent const *ev)
 Retrieve the type of an input event. More...
 
MirInputDeviceId mir_input_event_get_device_id (MirInputEvent const *ev)
 Retrieves the device id responsible for generating an input event. More...
 
int64_t mir_input_event_get_event_time (MirInputEvent const *ev)
 Retrieve the time at which an input event occurred. More...
 
MirInputEvent const * mir_pointer_event_input_event (MirPointerEvent const *event)
 Retrieve the corresponding input event. More...
 
MirInputEvent const * mir_keyboard_event_input_event (MirKeyboardEvent const *event)
 Retrieve the corresponding input event. More...
 
MirInputEvent const * mir_touch_event_input_event (MirTouchEvent const *event)
 Retrieve the corresponding input event. More...
 
MirKeyboardEvent const * mir_input_event_get_keyboard_event (MirInputEvent const *ev)
 Retrieve the MirKeyboardEvent associated with a given input event. More...
 
MirKeyboardAction mir_keyboard_event_action (MirKeyboardEvent const *kev)
 Retrieve the action which triggered a given key event. More...
 
xkb_keysym_t mir_keyboard_event_key_code (MirKeyboardEvent const *kev)
 Retrieve the xkb mapped keycode associated with the key acted on. More...
 
int mir_keyboard_event_scan_code (MirKeyboardEvent const *kev)
 Retrieve the raw hardware scan code associated with the key acted on. More...
 
MirInputEventModifiers mir_keyboard_event_modifiers (MirKeyboardEvent const *kev)
 Retrieve the modifier keys pressed when the key action occured. More...
 
MirInputEventModifiers mir_touch_event_modifiers (MirTouchEvent const *tev)
 Retrieve the modifier keys pressed when the touch action occured. More...
 
MirTouchEvent const * mir_input_event_get_touch_event (MirInputEvent const *ev)
 Retrieve the MirTouchEvent associated with a given input event. More...
 
unsigned int mir_touch_event_point_count (MirTouchEvent const *event)
 Retrieve the number of touches reported for a given touch event. More...
 
MirTouchId mir_touch_event_id (MirTouchEvent const *event, size_t touch_index)
 Retrieve the TouchID for a touch at given index. More...
 
MirTouchAction mir_touch_event_action (MirTouchEvent const *event, size_t touch_index)
 Retrieve the action which occured for a touch at given index. More...
 
MirTouchTooltype mir_touch_event_tooltype (MirTouchEvent const *event, size_t touch_index)
 Retrieve the tooltype for touch at given index. More...
 
float mir_touch_event_axis_value (MirTouchEvent const *event, size_t touch_index, MirTouchAxis axis)
 Retrieve the axis value for a given axis on an indexed touch. More...
 
MirPointerEvent const * mir_input_event_get_pointer_event (MirInputEvent const *ev)
 Retrieve the MirPointerEvent associated with a given input event. More...
 
MirInputEventModifiers mir_pointer_event_modifiers (MirPointerEvent const *pev)
 Retrieve the modifier keys pressed when the pointer action occured. More...
 
MirPointerAction mir_pointer_event_action (MirPointerEvent const *pev)
 Retrieve the action which occured to generate a given pointer event. More...
 
bool mir_pointer_event_button_state (MirPointerEvent const *pev, MirPointerButton button)
 Retrieve the state of a given pointer button when the action occurred. More...
 
MirPointerButtons mir_pointer_event_buttons (MirPointerEvent const *pev)
 Retreive the pointer button state as a masked set of values. More...
 
float mir_pointer_event_axis_value (MirPointerEvent const *pev, MirPointerAxis axis)
 Retrieve the axis value reported by a given pointer event. More...
 
bool mir_input_event_has_cookie (MirInputEvent const *ev)
 Query if an input event contains a cookie. More...
 
size_t mir_cookie_buffer_size (MirCookie const *cookie)
 Queries the size needed to serialize a given cookie. More...
 
MirCookie const * mir_input_event_get_cookie (MirInputEvent const *iev)
 Returns the cookie associated with an input event. More...
 
void mir_cookie_to_buffer (MirCookie const *cookie, void *buffer, size_t size)
 Serializes a cookie into the given buffer. More...
 
MirCookie const * mir_cookie_from_buffer (void const *buffer, size_t size)
 Create a cookie from a serialized representation. More...
 
void mir_cookie_release (MirCookie const *cookie)
 Release the MirCookie. More...
 

Macro Definition Documentation

#define MIR_LOG_COMPONENT   "input-event-access"

Enumeration Type Documentation

anonymous enum
anonymous enum

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016