RetroArch
Classes | Typedefs | Functions | Variables
ps2_input.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <libpad.h>
#include <boolean.h>
#include <libretro.h>
#include <retro_miscellaneous.h>
#include "../input_driver.h"
Include dependency graph for ps2_input.c:

Classes

struct  ps2_input
 

Typedefs

typedef struct ps2_input ps2_input_t
 

Functions

static void ps2_input_poll (void *data)
 
static int16_t ps2_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 ps2_input_free_input (void *data)
 
static voidps2_input_initialize (const char *joypad_driver)
 
static uint64_t ps2_input_get_capabilities (void *data)
 
static const input_device_driver_tps2_input_get_joypad_driver (void *data)
 
static void ps2_input_grab_mouse (void *data, bool state)
 
static bool ps2_input_set_rumble (void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
static bool ps2_input_keyboard_mapping_is_blocked (void *data)
 
static void ps2_input_keyboard_mapping_set_block (void *data, bool value)
 

Variables

input_driver_t input_ps2
 

Typedef Documentation

◆ ps2_input_t

typedef struct ps2_input ps2_input_t

Function Documentation

◆ ps2_input_free_input()

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

◆ ps2_input_get_capabilities()

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

◆ ps2_input_get_joypad_driver()

static const input_device_driver_t* ps2_input_get_joypad_driver ( void data)
static

◆ ps2_input_grab_mouse()

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

◆ ps2_input_initialize()

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

◆ ps2_input_keyboard_mapping_is_blocked()

static bool ps2_input_keyboard_mapping_is_blocked ( void data)
static

◆ ps2_input_keyboard_mapping_set_block()

static void ps2_input_keyboard_mapping_set_block ( void data,
bool  value 
)
static

◆ ps2_input_poll()

static void ps2_input_poll ( void data)
static

◆ ps2_input_set_rumble()

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

◆ ps2_input_state()

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

Variable Documentation

◆ input_ps2

input_driver_t input_ps2
Initial value:
= {
"ps2",
}
static const input_device_driver_t * ps2_input_get_joypad_driver(void *data)
Definition: ps2_input.c:94
static bool ps2_input_keyboard_mapping_is_blocked(void *data)
Definition: ps2_input.c:119
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void ps2_input_keyboard_mapping_set_block(void *data, bool value)
Definition: ps2_input.c:127
static bool ps2_input_set_rumble(void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
Definition: ps2_input.c:108
static void * ps2_input_initialize(const char *joypad_driver)
Definition: ps2_input.c:76
static void ps2_input_poll(void *data)
Definition: ps2_input.c:37
static uint64_t ps2_input_get_capabilities(void *data)
Definition: ps2_input.c:87
static void ps2_input_free_input(void *data)
Definition: ps2_input.c:66
static int16_t ps2_input_state(void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
Definition: ps2_input.c:45
static void ps2_input_grab_mouse(void *data, bool state)
Definition: ps2_input.c:102