FreeRDP
uwac-input.c File Reference
#include "uwac-priv.h"
#include "uwac-utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/timerfd.h>
#include <sys/epoll.h>

Functions

static void keyboard_repeat_func (UwacTask *task, uint32_t events)
 
static void keyboard_handle_keymap (void *data, struct wl_keyboard *keyboard, uint32_t format, int fd, uint32_t size)
 
static void keyboard_handle_key (void *data, struct wl_keyboard *keyboard, uint32_t serial, uint32_t time, uint32_t key, uint32_t state_w)
 
static void keyboard_handle_enter (void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys)
 
static void keyboard_handle_leave (void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface)
 
static int update_key_pressed (UwacSeat *seat, uint32_t key)
 
static int update_key_released (UwacSeat *seat, uint32_t key)
 
static void keyboard_handle_modifiers (void *data, struct wl_keyboard *keyboard, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group)
 
static void set_repeat_info (UwacSeat *input, int32_t rate, int32_t delay)
 
static void keyboard_handle_repeat_info (void *data, struct wl_keyboard *keyboard, int32_t rate, int32_t delay)
 
static bool touch_send_start_frame (UwacSeat *seat)
 
static void touch_handle_down (void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, struct wl_surface *surface, int32_t id, wl_fixed_t x_w, wl_fixed_t y_w)
 
static void touch_handle_up (void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, int32_t id)
 
static void touch_handle_motion (void *data, struct wl_touch *wl_touch, uint32_t time, int32_t id, wl_fixed_t x_w, wl_fixed_t y_w)
 
static void touch_handle_frame (void *data, struct wl_touch *wl_touch)
 
static void touch_handle_cancel (void *data, struct wl_touch *wl_touch)
 
static void pointer_handle_enter (void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface, wl_fixed_t sx_w, wl_fixed_t sy_w)
 
static void pointer_handle_leave (void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface)
 
static void pointer_handle_motion (void *data, struct wl_pointer *pointer, uint32_t time, wl_fixed_t sx_w, wl_fixed_t sy_w)
 
static void pointer_handle_button (void *data, struct wl_pointer *pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t state_w)
 
static void pointer_handle_axis (void *data, struct wl_pointer *pointer, uint32_t time, uint32_t axis, wl_fixed_t value)
 
static void pointer_frame (void *data, struct wl_pointer *wl_pointer)
 
static void pointer_axis_source (void *data, struct wl_pointer *wl_pointer, uint32_t axis_source)
 
static void pointer_axis_stop (void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis)
 
static void pointer_axis_discrete (void *data, struct wl_pointer *wl_pointer, uint32_t axis, int32_t discrete)
 
static void seat_handle_capabilities (void *data, struct wl_seat *seat, enum wl_seat_capability caps)
 
static void seat_handle_name (void *data, struct wl_seat *seat, const char *name)
 
UwacSeat * UwacSeatNew (UwacDisplay *d, uint32_t id, uint32_t version)
 
void UwacSeatDestroy (UwacSeat *s)
 
const char * UwacSeatGetName (const UwacSeat *seat)
 
UwacSeatId UwacSeatGetId (const UwacSeat *seat)
 

Variables

static const struct wl_keyboard_listener keyboard_listener
 
static const struct wl_touch_listener touch_listener
 
static const struct wl_pointer_listener pointer_listener
 
static const struct wl_seat_listener seat_listener
 

Function Documentation

static void keyboard_handle_enter ( void data,
struct wl_keyboard *  keyboard,
uint32_t  serial,
struct wl_surface *  surface,
struct wl_array *  keys 
)
static

Here is the call graph for this function:

static void keyboard_handle_key ( void data,
struct wl_keyboard *  keyboard,
uint32_t  serial,
uint32_t  time,
uint32_t  key,
uint32_t  state_w 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void keyboard_handle_keymap ( void data,
struct wl_keyboard *  keyboard,
uint32_t  format,
int  fd,
uint32_t  size 
)
static

Here is the call graph for this function:

static void keyboard_handle_leave ( void data,
struct wl_keyboard *  keyboard,
uint32_t  serial,
struct wl_surface *  surface 
)
static

Here is the call graph for this function:

static void keyboard_handle_modifiers ( void data,
struct wl_keyboard *  keyboard,
uint32_t  serial,
uint32_t  mods_depressed,
uint32_t  mods_latched,
uint32_t  mods_locked,
uint32_t  group 
)
static
static void keyboard_handle_repeat_info ( void data,
struct wl_keyboard *  keyboard,
int32_t  rate,
int32_t  delay 
)
static

Here is the call graph for this function:

static void keyboard_repeat_func ( UwacTask *  task,
uint32_t  events 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void pointer_axis_discrete ( void data,
struct wl_pointer *  wl_pointer,
uint32_t  axis,
int32_t  discrete 
)
static
static void pointer_axis_source ( void data,
struct wl_pointer *  wl_pointer,
uint32_t  axis_source 
)
static
static void pointer_axis_stop ( void data,
struct wl_pointer *  wl_pointer,
uint32_t  time,
uint32_t  axis 
)
static
static void pointer_frame ( void data,
struct wl_pointer *  wl_pointer 
)
static
static void pointer_handle_axis ( void data,
struct wl_pointer *  pointer,
uint32_t  time,
uint32_t  axis,
wl_fixed_t  value 
)
static

Here is the call graph for this function:

static void pointer_handle_button ( void data,
struct wl_pointer *  pointer,
uint32_t  serial,
uint32_t  time,
uint32_t  button,
uint32_t  state_w 
)
static

Here is the call graph for this function:

static void pointer_handle_enter ( void data,
struct wl_pointer *  pointer,
uint32_t  serial,
struct wl_surface *  surface,
wl_fixed_t  sx_w,
wl_fixed_t  sy_w 
)
static

Here is the call graph for this function:

static void pointer_handle_leave ( void data,
struct wl_pointer *  pointer,
uint32_t  serial,
struct wl_surface *  surface 
)
static

Here is the call graph for this function:

static void pointer_handle_motion ( void data,
struct wl_pointer *  pointer,
uint32_t  time,
wl_fixed_t  sx_w,
wl_fixed_t  sy_w 
)
static

Here is the call graph for this function:

static void seat_handle_capabilities ( void data,
struct wl_seat *  seat,
enum wl_seat_capability  caps 
)
static
static void seat_handle_name ( void data,
struct wl_seat *  seat,
const char *  name 
)
static

Here is the call graph for this function:

static void set_repeat_info ( UwacSeat *  input,
int32_t  rate,
int32_t  delay 
)
static

Here is the caller graph for this function:

static void touch_handle_cancel ( void data,
struct wl_touch *  wl_touch 
)
static

Here is the call graph for this function:

static void touch_handle_down ( void data,
struct wl_touch *  wl_touch,
uint32_t  serial,
uint32_t  time,
struct wl_surface *  surface,
int32_t  id,
wl_fixed_t  x_w,
wl_fixed_t  y_w 
)
static

Here is the call graph for this function:

static void touch_handle_frame ( void data,
struct wl_touch *  wl_touch 
)
static

Here is the call graph for this function:

static void touch_handle_motion ( void data,
struct wl_touch *  wl_touch,
uint32_t  time,
int32_t  id,
wl_fixed_t  x_w,
wl_fixed_t  y_w 
)
static

Here is the call graph for this function:

static void touch_handle_up ( void data,
struct wl_touch *  wl_touch,
uint32_t  serial,
uint32_t  time,
int32_t  id 
)
static

Here is the call graph for this function:

static bool touch_send_start_frame ( UwacSeat *  seat)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int update_key_pressed ( UwacSeat *  seat,
uint32_t  key 
)
static

Here is the caller graph for this function:

static int update_key_released ( UwacSeat *  seat,
uint32_t  key 
)
static

Here is the caller graph for this function:

void UwacSeatDestroy ( UwacSeat *  s)

Here is the caller graph for this function:

UwacSeatId UwacSeatGetId ( const UwacSeat *  seat)

returns the id of the given UwacSeat

Parameters
seatthe UwacSeat
Returns
the id of the seat
const char* UwacSeatGetName ( const UwacSeat *  seat)

returns the name of the given UwacSeat

Parameters
seatthe UwacSeat
Returns
the name of the seat
UwacSeat* UwacSeatNew ( UwacDisplay *  d,
uint32_t  id,
uint32_t  version 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const struct wl_keyboard_listener keyboard_listener
static
Initial value:
= {
}
static void keyboard_handle_keymap(void *data, struct wl_keyboard *keyboard, uint32_t format, int fd, uint32_t size)
Definition: uwac-input.c:62
static void keyboard_handle_repeat_info(void *data, struct wl_keyboard *keyboard, int32_t rate, int32_t delay)
Definition: uwac-input.c:326
static void keyboard_handle_leave(void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface)
Definition: uwac-input.c:157
static void keyboard_handle_modifiers(void *data, struct wl_keyboard *keyboard, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group)
Definition: uwac-input.c:284
static void keyboard_handle_enter(void *data, struct wl_keyboard *keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys)
Definition: uwac-input.c:120
static void keyboard_handle_key(void *data, struct wl_keyboard *keyboard, uint32_t serial, uint32_t time, uint32_t key, uint32_t state_w)
Definition: uwac-input.c:219
const struct wl_pointer_listener pointer_listener
static
Initial value:
= {
}
static void pointer_axis_source(void *data, struct wl_pointer *wl_pointer, uint32_t axis_source)
Definition: uwac-input.c:685
static void pointer_axis_stop(void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis)
Definition: uwac-input.c:690
static void pointer_handle_leave(void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface)
Definition: uwac-input.c:592
static void pointer_handle_axis(void *data, struct wl_pointer *pointer, uint32_t time, uint32_t axis, wl_fixed_t value)
Definition: uwac-input.c:658
static void pointer_handle_button(void *data, struct wl_pointer *pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t state_w)
Definition: uwac-input.c:637
static void pointer_handle_motion(void *data, struct wl_pointer *pointer, uint32_t time, wl_fixed_t sx_w, wl_fixed_t sy_w)
Definition: uwac-input.c:611
static void pointer_frame(void *data, struct wl_pointer *wl_pointer)
Definition: uwac-input.c:680
static void pointer_axis_discrete(void *data, struct wl_pointer *wl_pointer, uint32_t axis, int32_t discrete)
Definition: uwac-input.c:695
static void pointer_handle_enter(void *data, struct wl_pointer *pointer, uint32_t serial, struct wl_surface *surface, wl_fixed_t sx_w, wl_fixed_t sy_w)
Definition: uwac-input.c:559
const struct wl_seat_listener seat_listener
static
Initial value:
= {
}
static void seat_handle_name(void *data, struct wl_seat *seat, const char *name)
Definition: uwac-input.c:762
static void seat_handle_capabilities(void *data, struct wl_seat *seat, enum wl_seat_capability caps)
Definition: uwac-input.c:714
const struct wl_touch_listener touch_listener
static
Initial value:
= {
}
static void touch_handle_down(void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, struct wl_surface *surface, int32_t id, wl_fixed_t x_w, wl_fixed_t y_w)
Definition: uwac-input.c:354
static void touch_handle_motion(void *data, struct wl_touch *wl_touch, uint32_t time, int32_t id, wl_fixed_t x_w, wl_fixed_t y_w)
Definition: uwac-input.c:459
static void touch_handle_frame(void *data, struct wl_touch *wl_touch)
Definition: uwac-input.c:504
static void touch_handle_cancel(void *data, struct wl_touch *wl_touch)
Definition: uwac-input.c:517
static void touch_handle_up(void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, int32_t id)
Definition: uwac-input.c:417