RetroArch
Classes | Typedefs | Functions | Variables
linuxraw_input.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/input.h>
#include <linux/kd.h>
#include <signal.h>
#include <boolean.h>
#include "../../verbosity.h"
#include "../common/linux_common.h"
#include "../input_keymaps.h"
#include "../input_driver.h"
Include dependency graph for linuxraw_input.c:

Classes

struct  linuxraw_input
 

Typedefs

typedef struct linuxraw_input linuxraw_input_t
 

Functions

static voidlinuxraw_input_init (const char *joypad_driver)
 
static int16_t linuxraw_analog_pressed (linuxraw_input_t *linuxraw, const struct retro_keybind *binds, unsigned idx, unsigned id)
 
static int16_t linuxraw_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 linuxraw_input_free (void *data)
 
static bool linuxraw_set_rumble (void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
static const input_device_driver_tlinuxraw_get_joypad_driver (void *data)
 
static void linuxraw_input_poll (void *data)
 
static uint64_t linuxraw_get_capabilities (void *data)
 
static void linuxraw_grab_mouse (void *data, bool state)
 
static bool linuxraw_keyboard_mapping_is_blocked (void *data)
 
static void linuxraw_keyboard_mapping_set_block (void *data, bool value)
 

Variables

input_driver_t input_linuxraw
 

Typedef Documentation

◆ linuxraw_input_t

Function Documentation

◆ linuxraw_analog_pressed()

static int16_t linuxraw_analog_pressed ( linuxraw_input_t linuxraw,
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:

◆ linuxraw_get_capabilities()

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

◆ linuxraw_get_joypad_driver()

static const input_device_driver_t* linuxraw_get_joypad_driver ( void data)
static

◆ linuxraw_grab_mouse()

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

◆ linuxraw_input_free()

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

◆ linuxraw_input_init()

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

◆ linuxraw_input_poll()

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

◆ linuxraw_input_state()

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

◆ linuxraw_keyboard_mapping_is_blocked()

static bool linuxraw_keyboard_mapping_is_blocked ( void data)
static

◆ linuxraw_keyboard_mapping_set_block()

static void linuxraw_keyboard_mapping_set_block ( void data,
bool  value 
)
static

◆ linuxraw_set_rumble()

static bool linuxraw_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

◆ input_linuxraw

input_driver_t input_linuxraw
Initial value:
= {
"linuxraw",
}
static uint64_t linuxraw_get_capabilities(void *data)
Definition: linuxraw_input.c:186
static bool linuxraw_keyboard_mapping_is_blocked(void *data)
Definition: linuxraw_input.c:204
bool linux_terminal_grab_stdin(void *data)
Definition: linux_common.c:85
static void linuxraw_input_poll(void *data)
Definition: linuxraw_input.c:159
static const input_device_driver_t * linuxraw_get_joypad_driver(void *data)
Definition: linuxraw_input.c:151
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void * linuxraw_input_init(const char *joypad_driver)
Definition: linuxraw_input.c:45
static void linuxraw_keyboard_mapping_set_block(void *data, bool value)
Definition: linuxraw_input.c:212
static void linuxraw_input_free(void *data)
Definition: linuxraw_input.c:128
static int16_t linuxraw_input_state(void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
Definition: linuxraw_input.c:99
static bool linuxraw_set_rumble(void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
Definition: linuxraw_input.c:142
static void linuxraw_grab_mouse(void *data, bool state)
Definition: linuxraw_input.c:198