RetroArch
Functions | Variables
wayland_input.c File Reference
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <wayland-client.h>
#include <wayland-cursor.h>
#include <file/file_path.h>
#include <compat/strl.h>
#include <string/stdstring.h>
#include <retro_miscellaneous.h>
#include "../input_driver.h"
#include "../input_keymaps.h"
#include "../../gfx/video_driver.h"
#include "../common/linux_common.h"
#include "../../gfx/common/wayland_common.h"
#include "../../verbosity.h"
Include dependency graph for wayland_input.c:

Functions

void flush_wayland_fd (void *data)
 
static int16_t input_wl_mouse_state (input_ctx_wayland_data_t *wl, unsigned id, bool screen)
 
static int16_t input_wl_lightgun_state (input_ctx_wayland_data_t *wl, unsigned id)
 
bool wayland_context_gettouchpos (void *data, unsigned id, unsigned *touch_x, unsigned *touch_y)
 
static void input_wl_touch_pool (void *data)
 
static void input_wl_poll (void *data)
 
static int16_t input_wl_analog_pressed (input_ctx_wayland_data_t *wl, const struct retro_keybind *binds, unsigned idx, unsigned id)
 
static bool input_wl_state_kb (input_ctx_wayland_data_t *wl, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
 
static int16_t input_wl_pointer_state (input_ctx_wayland_data_t *wl, unsigned idx, unsigned id, bool screen)
 
static int16_t input_wl_touch_state (input_ctx_wayland_data_t *wl, unsigned idx, unsigned id, bool screen)
 
static int16_t input_wl_state (void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
 
static void input_wl_free (void *data)
 
bool input_wl_init (void *data, const char *joypad_name)
 
static uint64_t input_wl_get_capabilities (void *data)
 
static void input_wl_grab_mouse (void *data, bool state)
 
static bool input_wl_set_rumble (void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
static const input_device_driver_tinput_wl_get_joypad_driver (void *data)
 
static bool input_wl_keyboard_mapping_is_blocked (void *data)
 
static void input_wl_keyboard_mapping_set_block (void *data, bool value)
 

Variables

input_driver_t input_wayland
 

Function Documentation

◆ flush_wayland_fd()

void flush_wayland_fd ( void data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_wl_analog_pressed()

static int16_t input_wl_analog_pressed ( input_ctx_wayland_data_t wl,
const struct retro_keybind binds,
unsigned  idx,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_wl_free()

static void input_wl_free ( void data)
static

◆ input_wl_get_capabilities()

static uint64_t input_wl_get_capabilities ( void data)
static
Here is the call graph for this function:

◆ input_wl_get_joypad_driver()

static const input_device_driver_t* input_wl_get_joypad_driver ( void data)
static

◆ input_wl_grab_mouse()

static void input_wl_grab_mouse ( void data,
bool  state 
)
static
Here is the call graph for this function:

◆ input_wl_init()

bool input_wl_init ( void data,
const char *  joypad_name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_wl_keyboard_mapping_is_blocked()

static bool input_wl_keyboard_mapping_is_blocked ( void data)
static

◆ input_wl_keyboard_mapping_set_block()

static void input_wl_keyboard_mapping_set_block ( void data,
bool  value 
)
static

◆ input_wl_lightgun_state()

static int16_t input_wl_lightgun_state ( input_ctx_wayland_data_t wl,
unsigned  id 
)
static
Here is the caller graph for this function:

◆ input_wl_mouse_state()

static int16_t input_wl_mouse_state ( input_ctx_wayland_data_t wl,
unsigned  id,
bool  screen 
)
static
Here is the caller graph for this function:

◆ input_wl_pointer_state()

static int16_t input_wl_pointer_state ( input_ctx_wayland_data_t wl,
unsigned  idx,
unsigned  id,
bool  screen 
)
static
Here is the caller graph for this function:

◆ input_wl_poll()

static void input_wl_poll ( void data)
static
Here is the call graph for this function:

◆ input_wl_set_rumble()

static bool input_wl_set_rumble ( void data,
unsigned  port,
enum retro_rumble_effect  effect,
uint16_t  strength 
)
static
Here is the call graph for this function:

◆ input_wl_state()

static int16_t input_wl_state ( void data,
rarch_joypad_info_t  joypad_info,
const struct retro_keybind **  binds,
unsigned  port,
unsigned  device,
unsigned  idx,
unsigned  id 
)
static
Here is the call graph for this function:

◆ input_wl_state_kb()

static bool input_wl_state_kb ( input_ctx_wayland_data_t wl,
const struct retro_keybind **  binds,
unsigned  port,
unsigned  device,
unsigned  idx,
unsigned  id 
)
static
Here is the caller graph for this function:

◆ input_wl_touch_pool()

static void input_wl_touch_pool ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_wl_touch_state()

static int16_t input_wl_touch_state ( input_ctx_wayland_data_t wl,
unsigned  idx,
unsigned  id,
bool  screen 
)
static
Here is the caller graph for this function:

◆ wayland_context_gettouchpos()

bool wayland_context_gettouchpos ( void data,
unsigned  id,
unsigned *  touch_x,
unsigned *  touch_y 
)
Here is the caller graph for this function:

Variable Documentation

◆ input_wayland

input_driver_t input_wayland
Initial value:
= {
"wayland",
}
static void input_wl_free(void *data)
Definition: wayland_input.c:334
static int16_t input_wl_state(void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
Definition: wayland_input.c:288
static void input_wl_poll(void *data)
Definition: wayland_input.c:127
static bool input_wl_keyboard_mapping_is_blocked(void *data)
Definition: wayland_input.c:396
static const input_device_driver_t * input_wl_get_joypad_driver(void *data)
Definition: wayland_input.c:388
static uint64_t input_wl_get_capabilities(void *data)
Definition: wayland_input.c:360
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void input_wl_keyboard_mapping_set_block(void *data, bool value)
Definition: wayland_input.c:404
static bool input_wl_set_rumble(void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
Definition: wayland_input.c:379
static void input_wl_grab_mouse(void *data, bool state)
Definition: wayland_input.c:372