RetroArch
Classes | Typedefs | Functions | Variables
x11_input.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <boolean.h>
#include <compat/strl.h>
#include <retro_inline.h>
#include "../input_driver.h"
#include "../input_keymaps.h"
#include "../../gfx/video_driver.h"
#include "../common/input_x11_common.h"
#include "../../configuration.h"
#include "../../verbosity.h"
Include dependency graph for x11_input.c:

Classes

struct  x11_input
 

Typedefs

typedef struct x11_input x11_input_t
 

Functions

static voidx_input_init (const char *joypad_driver)
 
static bool x_keyboard_pressed (x11_input_t *x11, unsigned key)
 
static bool x_mbutton_pressed (x11_input_t *x11, unsigned port, unsigned key)
 
static bool x_is_pressed (x11_input_t *x11, rarch_joypad_info_t joypad_info, const struct retro_keybind *binds, unsigned port, unsigned id)
 
static int16_t x_pressed_analog (x11_input_t *x11, const struct retro_keybind *binds, unsigned idx, unsigned id)
 
static int16_t x_lightgun_aiming_state (x11_input_t *x11, unsigned idx, unsigned id)
 
static int16_t x_mouse_state (x11_input_t *x11, unsigned id)
 
static int16_t x_mouse_state_screen (x11_input_t *x11, unsigned id)
 
static int16_t x_pointer_state (x11_input_t *x11, unsigned idx, unsigned id, bool screen)
 
static int16_t x_input_state (void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
 
static void x_input_free (void *data)
 
static void x_input_poll_mouse (x11_input_t *x11)
 
static void x_input_poll (void *data)
 
static void x_grab_mouse (void *data, bool state)
 
static bool x_set_rumble (void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
static const input_device_driver_tx_get_joypad_driver (void *data)
 
static uint64_t x_input_get_capabilities (void *data)
 
static bool x_keyboard_mapping_is_blocked (void *data)
 
static void x_keyboard_mapping_set_block (void *data, bool value)
 

Variables

bool g_x11_entered
 
input_driver_t input_x
 

Typedef Documentation

◆ x11_input_t

typedef struct x11_input x11_input_t

Function Documentation

◆ x_get_joypad_driver()

static const input_device_driver_t* x_get_joypad_driver ( void data)
static

◆ x_grab_mouse()

static void x_grab_mouse ( void data,
bool  state 
)
static

◆ x_input_free()

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

◆ x_input_get_capabilities()

static uint64_t x_input_get_capabilities ( void data)
static

◆ x_input_init()

static void* x_input_init ( const char *  joypad_driver)
static
Here is the call graph for this function:

◆ x_input_poll()

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

◆ x_input_poll_mouse()

static void x_input_poll_mouse ( x11_input_t x11)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x_input_state()

static int16_t x_input_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:

◆ x_is_pressed()

static bool x_is_pressed ( x11_input_t x11,
rarch_joypad_info_t  joypad_info,
const struct retro_keybind binds,
unsigned  port,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x_keyboard_mapping_is_blocked()

static bool x_keyboard_mapping_is_blocked ( void data)
static

◆ x_keyboard_mapping_set_block()

static void x_keyboard_mapping_set_block ( void data,
bool  value 
)
static

◆ x_keyboard_pressed()

static bool x_keyboard_pressed ( x11_input_t x11,
unsigned  key 
)
static
Here is the caller graph for this function:

◆ x_lightgun_aiming_state()

static int16_t x_lightgun_aiming_state ( x11_input_t x11,
unsigned  idx,
unsigned  id 
)
static
Here is the caller graph for this function:

◆ x_mbutton_pressed()

static bool x_mbutton_pressed ( x11_input_t x11,
unsigned  port,
unsigned  key 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x_mouse_state()

static int16_t x_mouse_state ( x11_input_t x11,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x_mouse_state_screen()

static int16_t x_mouse_state_screen ( x11_input_t x11,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ x_pointer_state()

static int16_t x_pointer_state ( x11_input_t x11,
unsigned  idx,
unsigned  id,
bool  screen 
)
static
Here is the caller graph for this function:

◆ x_pressed_analog()

static int16_t x_pressed_analog ( x11_input_t x11,
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:

◆ x_set_rumble()

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

Variable Documentation

◆ g_x11_entered

bool g_x11_entered

◆ input_x

input_driver_t input_x
Initial value:
= {
"x",
}
static bool x_keyboard_mapping_is_blocked(void *data)
Definition: x11_input.c:510
static int16_t x_input_state(void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
Definition: x11_input.c:303
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool x_set_rumble(void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
Definition: x11_input.c:478
static void x_keyboard_mapping_set_block(void *data, bool value)
Definition: x11_input.c:518
static uint64_t x_input_get_capabilities(void *data)
Definition: x11_input.c:496
static const input_device_driver_t * x_get_joypad_driver(void *data)
Definition: x11_input.c:487
static void * x_input_init(const char *joypad_driver)
Definition: x11_input.c:52
static void x_input_poll(void *data)
Definition: x11_input.c:456
static void x_grab_mouse(void *data, bool state)
Definition: x11_input.c:471
static void x_input_free(void *data)
Definition: x11_input.c:385