RetroArch
Classes | Macros | Typedefs | Enumerations | Functions
input_driver.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>
#include <sys/types.h>
#include "input_types.h"
#include <boolean.h>
#include <retro_common_api.h>
#include <retro_inline.h>
#include <libretro.h>
#include <retro_miscellaneous.h>
#include "input_defines.h"
#include "../msg_hash.h"
#include "include/hid_types.h"
#include "include/hid_driver.h"
#include "include/gamepad.h"
Include dependency graph for input_driver.h:

Go to the source code of this file.

Classes

struct  retro_keybind
 
struct  rarch_joypad_info
 
struct  input_driver
 
struct  rarch_joypad_driver
 
struct  input_keyboard_ctx_wait
 

Macros

#define inherit_joyaxis(binds)   (((binds)[x_plus].joyaxis == (binds)[x_minus].joyaxis) || ( (binds)[y_plus].joyaxis == (binds)[y_minus].joyaxis))
 
#define input_pop_analog_dpad(binds)
 
#define input_push_analog_dpad(binds, mode)
 

Typedefs

typedef void(* input_keyboard_line_complete_t) (void *userdata, const char *line)
 
typedef bool(* input_keyboard_press_t) (void *userdata, unsigned code)
 

Enumerations

enum  input_device_type { INPUT_DEVICE_TYPE_NONE = 0, INPUT_DEVICE_TYPE_KEYBOARD, INPUT_DEVICE_TYPE_JOYPAD }
 
enum  input_toggle_type {
  INPUT_TOGGLE_NONE = 0, INPUT_TOGGLE_DOWN_Y_L_R, INPUT_TOGGLE_L3_R3, INPUT_TOGGLE_L1_R1_START_SELECT,
  INPUT_TOGGLE_START_SELECT, INPUT_TOGGLE_L3_R, INPUT_TOGGLE_L_R, INPUT_TOGGLE_HOLD_START,
  INPUT_TOGGLE_LAST
}
 
enum  input_action { INPUT_ACTION_NONE = 0, INPUT_ACTION_AXIS_THRESHOLD, INPUT_ACTION_MAX_USERS }
 
enum  rarch_input_keyboard_ctl_state {
  RARCH_INPUT_KEYBOARD_CTL_NONE = 0, RARCH_INPUT_KEYBOARD_CTL_SET_LINEFEED_ENABLED, RARCH_INPUT_KEYBOARD_CTL_UNSET_LINEFEED_ENABLED, RARCH_INPUT_KEYBOARD_CTL_IS_LINEFEED_ENABLED,
  RARCH_INPUT_KEYBOARD_CTL_LINE_FREE, RARCH_INPUT_KEYBOARD_CTL_START_WAIT_KEYS, RARCH_INPUT_KEYBOARD_CTL_CANCEL_WAIT_KEYS
}
 

Functions

const voidinput_driver_find_handle (int index)
 
const char * input_driver_find_ident (int index)
 
const char * config_get_input_driver_options (void)
 
bool input_driver_set_rumble_state (unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
uint64_t input_driver_get_capabilities (void)
 
const input_device_driver_tinput_driver_get_joypad_driver (void)
 
const input_device_driver_tinput_driver_get_sec_joypad_driver (void)
 
void input_driver_keyboard_mapping_set_block (bool value)
 
void input_driver_set (const input_driver_t **input, void **input_data)
 
bool input_sensor_set_state (unsigned port, enum retro_sensor_action action, unsigned rate)
 
float input_sensor_get_input (unsigned port, unsigned id)
 
void input_poll (void)
 
int16_t input_state (unsigned port, unsigned device, unsigned idx, unsigned id)
 
void input_keys_pressed (void *data, input_bits_t *new_state)
 
voidinput_driver_get_data (void)
 
void input_get_state_for_port (void *data, unsigned port, input_bits_t *p_new_state)
 
const input_driver_tinput_get_ptr (void)
 
voidinput_get_data (void)
 
const input_driver_t ** input_get_double_ptr (void)
 
void ** input_driver_get_data_ptr (void)
 
bool input_driver_has_capabilities (void)
 
bool input_driver_init (void)
 
void input_driver_deinit (void)
 
void input_driver_destroy_data (void)
 
void input_driver_destroy (void)
 
bool input_driver_grab_stdin (void)
 
bool input_driver_keyboard_mapping_is_blocked (void)
 
bool input_driver_find_driver (void)
 
void input_driver_set_flushing_input (void)
 
void input_driver_unset_hotkey_block (void)
 
void input_driver_set_hotkey_block (void)
 
void input_driver_set_libretro_input_blocked (void)
 
void input_driver_unset_libretro_input_blocked (void)
 
bool input_driver_is_libretro_input_blocked (void)
 
void input_driver_set_nonblock_state (void)
 
void input_driver_unset_nonblock_state (void)
 
bool input_driver_is_nonblock_state (void)
 
void input_driver_set_own_driver (void)
 
void input_driver_unset_own_driver (void)
 
bool input_driver_owns_driver (void)
 
void input_driver_deinit_command (void)
 
bool input_driver_init_command (void)
 
void input_driver_deinit_remote (void)
 
bool input_driver_init_remote (void)
 
void input_driver_deinit_mapper (void)
 
bool input_driver_init_mapper (void)
 
bool input_driver_grab_mouse (void)
 
bool input_driver_ungrab_mouse (void)
 
int16_t input_driver_input_state (rarch_joypad_info_t joypad_info, const struct retro_keybind **retro_keybinds, unsigned port, unsigned device, unsigned index, unsigned id)
 
float * input_driver_get_float (enum input_action action)
 
unsigned * input_driver_get_uint (enum input_action action)
 
bool input_driver_is_data_ptr_same (void *data)
 
const voidjoypad_driver_find_handle (int index)
 
const char * joypad_driver_find_ident (int index)
 
const char * config_get_joypad_driver_options (void)
 
const input_device_driver_tinput_joypad_init_driver (const char *ident, void *data)
 
const input_device_driver_tinput_joypad_init_first (void *data)
 
void input_conv_analog_id_to_bind_id (unsigned idx, unsigned ident, unsigned *ident_minus, unsigned *ident_plus)
 
static INLINE bool input_joypad_pressed (const input_device_driver_t *drv, rarch_joypad_info_t joypad_info, unsigned port, const struct retro_keybind *binds, unsigned key)
 
int16_t input_joypad_analog (const input_device_driver_t *driver, rarch_joypad_info_t joypad_info, unsigned port, unsigned idx, unsigned ident, const struct retro_keybind *binds)
 
bool input_joypad_set_rumble (const input_device_driver_t *driver, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
int16_t input_joypad_axis_raw (const input_device_driver_t *driver, unsigned port, unsigned axis)
 
bool input_joypad_button_raw (const input_device_driver_t *driver, unsigned port, unsigned button)
 
bool input_joypad_hat_raw (const input_device_driver_t *driver, unsigned joypad, unsigned hat_dir, unsigned hat)
 
void input_pad_connect (unsigned port, input_device_driver_t *driver)
 
bool input_mouse_button_raw (unsigned port, unsigned button)
 
const char * input_joypad_name (const input_device_driver_t *driver, unsigned port)
 
bool input_config_get_bind_idx (unsigned port, unsigned *joy_idx_real)
 

Macro Definition Documentation

◆ inherit_joyaxis

#define inherit_joyaxis (   binds)    (((binds)[x_plus].joyaxis == (binds)[x_minus].joyaxis) || ( (binds)[y_plus].joyaxis == (binds)[y_minus].joyaxis))

◆ input_pop_analog_dpad

#define input_pop_analog_dpad (   binds)
Value:
{ \
unsigned j; \
(binds)[j].joyaxis = (binds)[j].orig_joyaxis; \
}
#define RETRO_DEVICE_ID_JOYPAD_RIGHT
Definition: libretro.h:195
GLint j
Definition: nx_glsym.h:307
#define RETRO_DEVICE_ID_JOYPAD_UP
Definition: libretro.h:192

input_pop_analog_dpad: : Binds to modify.

Restores binds temporarily overridden by input_push_analog_dpad().

◆ input_push_analog_dpad

#define input_push_analog_dpad (   binds,
  mode 
)
Value:
{ \
unsigned k; \
unsigned x_plus = RARCH_ANALOG_RIGHT_X_PLUS; \
unsigned y_plus = RARCH_ANALOG_RIGHT_Y_PLUS; \
unsigned x_minus = RARCH_ANALOG_RIGHT_X_MINUS; \
unsigned y_minus = RARCH_ANALOG_RIGHT_Y_MINUS; \
{ \
} \
(binds)[k].orig_joyaxis = (binds)[k].joyaxis; \
if (!inherit_joyaxis(binds)) \
{ \
unsigned j = x_plus + 3; \
/* Inherit joyaxis from analogs. */ \
(binds)[k].joyaxis = (binds)[j--].joyaxis; \
} \
}
GLenum mode
Definition: glext.h:6857
#define inherit_joyaxis(binds)
Definition: input_driver.h:248
Definition: input_defines.h:50
Definition: input_defines.h:125
Definition: input_defines.h:53
Definition: input_defines.h:49
Definition: input_defines.h:46
Definition: input_defines.h:48
#define RETRO_DEVICE_ID_JOYPAD_RIGHT
Definition: libretro.h:195
GLint j
Definition: nx_glsym.h:307
Definition: input_defines.h:47
Definition: input_defines.h:51
Definition: input_defines.h:52
#define RETRO_DEVICE_ID_JOYPAD_UP
Definition: libretro.h:192

input_push_analog_dpad: : Binds to modify. : Which analog stick to bind D-Pad to. E.g: ANALOG_DPAD_LSTICK ANALOG_DPAD_RSTICK

Push analog to D-Pad mappings to binds.

Typedef Documentation

◆ input_keyboard_line_complete_t

typedef void(* input_keyboard_line_complete_t) (void *userdata, const char *line)

Line complete callback. Calls back after return is pressed with the completed line. Line can be NULL.

◆ input_keyboard_press_t

typedef bool(* input_keyboard_press_t) (void *userdata, unsigned code)

Enumeration Type Documentation

◆ input_action

Enumerator
INPUT_ACTION_NONE 
INPUT_ACTION_AXIS_THRESHOLD 
INPUT_ACTION_MAX_USERS 

◆ input_device_type

Enumerator
INPUT_DEVICE_TYPE_NONE 
INPUT_DEVICE_TYPE_KEYBOARD 
INPUT_DEVICE_TYPE_JOYPAD 

◆ input_toggle_type

Enumerator
INPUT_TOGGLE_NONE 
INPUT_TOGGLE_DOWN_Y_L_R 
INPUT_TOGGLE_L3_R3 
INPUT_TOGGLE_L1_R1_START_SELECT 
INPUT_TOGGLE_START_SELECT 
INPUT_TOGGLE_L3_R 
INPUT_TOGGLE_L_R 
INPUT_TOGGLE_HOLD_START 
INPUT_TOGGLE_LAST 

◆ rarch_input_keyboard_ctl_state

Enumerator
RARCH_INPUT_KEYBOARD_CTL_NONE 
RARCH_INPUT_KEYBOARD_CTL_SET_LINEFEED_ENABLED 
RARCH_INPUT_KEYBOARD_CTL_UNSET_LINEFEED_ENABLED 
RARCH_INPUT_KEYBOARD_CTL_IS_LINEFEED_ENABLED 
RARCH_INPUT_KEYBOARD_CTL_LINE_FREE 
RARCH_INPUT_KEYBOARD_CTL_START_WAIT_KEYS 
RARCH_INPUT_KEYBOARD_CTL_CANCEL_WAIT_KEYS 

Function Documentation

◆ config_get_input_driver_options()

const char* config_get_input_driver_options ( void  )

config_get_input_driver_options:

Get an enumerated list of all input driver names, separated by '|'.

Returns: string listing of all input driver names, separated by '|'.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ config_get_joypad_driver_options()

const char* config_get_joypad_driver_options ( void  )

config_get_joypad_driver_options:

Get an enumerated list of all joypad driver names, separated by '|'.

Returns: string listing of all joypad driver names, separated by '|'.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_config_get_bind_idx()

bool input_config_get_bind_idx ( unsigned  port,
unsigned *  joy_idx_real 
)
Here is the caller graph for this function:

◆ input_conv_analog_id_to_bind_id()

void input_conv_analog_id_to_bind_id ( unsigned  idx,
unsigned  ident,
unsigned *  ident_minus,
unsigned *  ident_plus 
)

input_conv_analog_id_to_bind_id: : Analog key index. E.g.:

  • RETRO_DEVICE_INDEX_ANALOG_LEFT
  • RETRO_DEVICE_INDEX_ANALOG_RIGHT : Analog key identifier. E.g.:
  • RETRO_DEVICE_ID_ANALOG_X
  • RETRO_DEVICE_ID_ANALOG_Y : Bind ID minus, will be set by function. : Bind ID plus, will be set by function.

Takes as input analog key identifiers and converts them to corresponding bind IDs and .

Here is the caller graph for this function:

◆ input_driver_deinit()

void input_driver_deinit ( void  )
Here is the caller graph for this function:

◆ input_driver_deinit_command()

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

◆ input_driver_deinit_mapper()

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

◆ input_driver_deinit_remote()

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

◆ input_driver_destroy()

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

◆ input_driver_destroy_data()

void input_driver_destroy_data ( void  )
Here is the caller graph for this function:

◆ input_driver_find_driver()

bool input_driver_find_driver ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_driver_find_handle()

const void* input_driver_find_handle ( int  idx)

input_driver_find_handle: : index of driver to get handle to.

Returns: handle to input driver at index. Can be NULL if nothing found.

input_driver_find_handle: : index of driver to get handle to.

Returns: handle to input driver at index. Can be NULL if nothing found.

Here is the caller graph for this function:

◆ input_driver_find_ident()

const char* input_driver_find_ident ( int  idx)

input_driver_find_ident: : index of driver to get handle to.

Returns: Human-readable identifier of input driver at index. Can be NULL if nothing found.

input_driver_find_ident: : index of driver to get handle to.

Returns: Human-readable identifier of input driver at index. Can be NULL if nothing found.

Here is the caller graph for this function:

◆ input_driver_get_capabilities()

uint64_t input_driver_get_capabilities ( void  )
Here is the caller graph for this function:

◆ input_driver_get_data()

void* input_driver_get_data ( void  )
Here is the caller graph for this function:

◆ input_driver_get_data_ptr()

void** input_driver_get_data_ptr ( void  )
Here is the caller graph for this function:

◆ input_driver_get_float()

float* input_driver_get_float ( enum input_action  action)
Here is the caller graph for this function:

◆ input_driver_get_joypad_driver()

const input_device_driver_t* input_driver_get_joypad_driver ( void  )
Here is the caller graph for this function:

◆ input_driver_get_sec_joypad_driver()

const input_device_driver_t* input_driver_get_sec_joypad_driver ( void  )
Here is the caller graph for this function:

◆ input_driver_get_uint()

unsigned* input_driver_get_uint ( enum input_action  action)
Here is the caller graph for this function:

◆ input_driver_grab_mouse()

bool input_driver_grab_mouse ( void  )
Here is the caller graph for this function:

◆ input_driver_grab_stdin()

bool input_driver_grab_stdin ( void  )
Here is the caller graph for this function:

◆ input_driver_has_capabilities()

bool input_driver_has_capabilities ( void  )
Here is the caller graph for this function:

◆ input_driver_init()

bool input_driver_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_driver_init_command()

bool input_driver_init_command ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_driver_init_mapper()

bool input_driver_init_mapper ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_driver_init_remote()

bool input_driver_init_remote ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_driver_input_state()

int16_t input_driver_input_state ( rarch_joypad_info_t  joypad_info,
const struct retro_keybind **  retro_keybinds,
unsigned  port,
unsigned  device,
unsigned  index,
unsigned  id 
)
Here is the caller graph for this function:

◆ input_driver_is_data_ptr_same()

bool input_driver_is_data_ptr_same ( void data)
Here is the caller graph for this function:

◆ input_driver_is_libretro_input_blocked()

bool input_driver_is_libretro_input_blocked ( void  )
Here is the caller graph for this function:

◆ input_driver_is_nonblock_state()

bool input_driver_is_nonblock_state ( void  )
Here is the caller graph for this function:

◆ input_driver_keyboard_mapping_is_blocked()

bool input_driver_keyboard_mapping_is_blocked ( void  )

◆ input_driver_keyboard_mapping_set_block()

void input_driver_keyboard_mapping_set_block ( bool  value)
Here is the caller graph for this function:

◆ input_driver_owns_driver()

bool input_driver_owns_driver ( void  )
Here is the caller graph for this function:

◆ input_driver_set()

void input_driver_set ( const input_driver_t **  input,
void **  input_data 
)
Here is the call graph for this function:

◆ input_driver_set_flushing_input()

void input_driver_set_flushing_input ( void  )
Here is the caller graph for this function:

◆ input_driver_set_hotkey_block()

void input_driver_set_hotkey_block ( void  )
Here is the caller graph for this function:

◆ input_driver_set_libretro_input_blocked()

void input_driver_set_libretro_input_blocked ( void  )
Here is the caller graph for this function:

◆ input_driver_set_nonblock_state()

void input_driver_set_nonblock_state ( void  )
Here is the caller graph for this function:

◆ input_driver_set_own_driver()

void input_driver_set_own_driver ( void  )
Here is the caller graph for this function:

◆ input_driver_set_rumble_state()

bool input_driver_set_rumble_state ( unsigned  port,
enum retro_rumble_effect  effect,
uint16_t  strength 
)

input_driver_set_rumble_state: : User number. : Rumble effect. : Strength of rumble effect.

Sets the rumble state. Used by RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE.

Here is the caller graph for this function:

◆ input_driver_ungrab_mouse()

bool input_driver_ungrab_mouse ( void  )
Here is the caller graph for this function:

◆ input_driver_unset_hotkey_block()

void input_driver_unset_hotkey_block ( void  )
Here is the caller graph for this function:

◆ input_driver_unset_libretro_input_blocked()

void input_driver_unset_libretro_input_blocked ( void  )
Here is the caller graph for this function:

◆ input_driver_unset_nonblock_state()

void input_driver_unset_nonblock_state ( void  )
Here is the caller graph for this function:

◆ input_driver_unset_own_driver()

void input_driver_unset_own_driver ( void  )
Here is the caller graph for this function:

◆ input_get_data()

void* input_get_data ( void  )
Here is the caller graph for this function:

◆ input_get_double_ptr()

const input_driver_t** input_get_double_ptr ( void  )
Here is the caller graph for this function:

◆ input_get_ptr()

const input_driver_t* input_get_ptr ( void  )
Here is the caller graph for this function:

◆ input_get_state_for_port()

void input_get_state_for_port ( void data,
unsigned  port,
input_bits_t p_new_state 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_joypad_analog()

int16_t input_joypad_analog ( const input_device_driver_t drv,
rarch_joypad_info_t  joypad_info,
unsigned  port,
unsigned  idx,
unsigned  ident,
const struct retro_keybind binds 
)

input_joypad_analog: : Input device driver handle. : User number. : Analog key index. E.g.:

  • RETRO_DEVICE_INDEX_ANALOG_LEFT
  • RETRO_DEVICE_INDEX_ANALOG_RIGHT
  • RETRO_DEVICE_INDEX_ANALOG_BUTTON : Analog key identifier. E.g.:
  • RETRO_DEVICE_ID_ANALOG_X
  • RETRO_DEVICE_ID_ANALOG_Y : Binds of user.

Gets analog value of analog key identifiers and from user with number with provided keybinds ().

Returns: analog value on success, otherwise 0.

input_joypad_analog: : Input device driver handle. : User number. : Analog key index. E.g.:

  • RETRO_DEVICE_INDEX_ANALOG_LEFT
  • RETRO_DEVICE_INDEX_ANALOG_RIGHT : Analog key identifier. E.g.:
  • RETRO_DEVICE_ID_ANALOG_X
  • RETRO_DEVICE_ID_ANALOG_Y : Binds of user.

Gets analog value of analog key identifiers and from user with number with provided keybinds ().

Returns: analog value on success, otherwise 0.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_joypad_axis_raw()

int16_t input_joypad_axis_raw ( const input_device_driver_t drv,
unsigned  port,
unsigned  axis 
)

input_joypad_axis_raw: : Input device driver handle. : Joystick number. : Identifier of axis.

Checks if axis () was being pressed by user with joystick number .

Returns: true (1) if axis was pressed, otherwise false (0).

Here is the caller graph for this function:

◆ input_joypad_button_raw()

bool input_joypad_button_raw ( const input_device_driver_t drv,
unsigned  port,
unsigned  button 
)

input_joypad_button_raw: : Input device driver handle. : Joystick number. : Identifier of key.

Checks if key () was being pressed by user with joystick number .

Returns: true (1) if key was pressed, otherwise false (0).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_joypad_hat_raw()

bool input_joypad_hat_raw ( const input_device_driver_t driver,
unsigned  joypad,
unsigned  hat_dir,
unsigned  hat 
)
Here is the caller graph for this function:

◆ input_joypad_init_driver()

const input_device_driver_t* input_joypad_init_driver ( const char *  ident,
void data 
)

input_joypad_init_driver: : identifier of driver to initialize.

Initialize a joypad driver of name .

If ident points to NULL or a zero-length string, equivalent to calling input_joypad_init_first().

Returns: joypad driver if found, otherwise NULL.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_joypad_init_first()

const input_device_driver_t* input_joypad_init_first ( void data)

input_joypad_init_first:

Finds first suitable joypad driver and initializes.

Returns: joypad driver if found, otherwise NULL.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_joypad_name()

const char* input_joypad_name ( const input_device_driver_t drv,
unsigned  port 
)

input_joypad_name: : Input device driver handle. : Joystick number.

Gets name of the joystick ().

Returns: name of joystick port.

◆ input_joypad_pressed()

static INLINE bool input_joypad_pressed ( const input_device_driver_t drv,
rarch_joypad_info_t  joypad_info,
unsigned  port,
const struct retro_keybind binds,
unsigned  key 
)
static

input_joypad_pressed: : Input device driver handle. : User number. : Binds of user. : Identifier of key.

Checks if key () was being pressed by user with number with provided keybinds ().

Returns: true (1) if key was pressed, otherwise false (0).

Here is the caller graph for this function:

◆ input_joypad_set_rumble()

bool input_joypad_set_rumble ( const input_device_driver_t drv,
unsigned  port,
enum retro_rumble_effect  effect,
uint16_t  strength 
)

input_joypad_set_rumble: : Input device driver handle. : User number. : Rumble effect to set. : Strength of rumble effect.

Sets rumble effect with strength .

Returns: true (1) if successful, otherwise false (0).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_keys_pressed()

void input_keys_pressed ( void data,
input_bits_t p_new_state 
)

input_keys_pressed:

Grab an input sample for this frame.

Returns: Input sample containing a mask of all pressed keys.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_mouse_button_raw()

bool input_mouse_button_raw ( unsigned  port,
unsigned  id 
)

input_mouse_button_raw: : Mouse number. : Identifier of key (libretro mouse constant).

Checks if key () was being pressed by user with mouse number .

Returns: true (1) if key was pressed, otherwise false (0).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_pad_connect()

void input_pad_connect ( unsigned  port,
input_device_driver_t driver 
)

input_pad_connect: : Joystick number. : handle for joypad driver handling joystick's input

Registers a newly connected pad with RetroArch.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_poll()

void input_poll ( void  )

input_poll:

Input polling callback function.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_sensor_get_input()

float input_sensor_get_input ( unsigned  port,
unsigned  id 
)
Here is the caller graph for this function:

◆ input_sensor_set_state()

bool input_sensor_set_state ( unsigned  port,
enum retro_sensor_action  action,
unsigned  rate 
)

input_sensor_set_state: : User number. : Sensor action. : Sensor rate update.

Sets the sensor state. Used by RETRO_ENVIRONMENT_GET_SENSOR_INTERFACE.

Here is the caller graph for this function:

◆ input_state()

int16_t input_state ( unsigned  port,
unsigned  device,
unsigned  idx,
unsigned  id 
)

input_state: : user number. : device identifier of user. : index value of user. : identifier of key pressed by user.

Input state callback function.

Returns: Non-zero if the given key (identified by ) was pressed by the user (assigned to ).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ joypad_driver_find_handle()

const void* joypad_driver_find_handle ( int  idx)

joypad_driver_find_handle: : index of driver to get handle to.

Returns: handle to joypad driver at index. Can be NULL if nothing found.

joypad_driver_find_handle: : index of driver to get handle to.

Returns: handle to joypad driver at index. Can be NULL if nothing found.

Here is the caller graph for this function:

◆ joypad_driver_find_ident()

const char* joypad_driver_find_ident ( int  idx)

joypad_driver_find_ident: : index of driver to get handle to.

Returns: Human-readable identifier of joypad driver at index. Can be NULL if nothing found.

joypad_driver_find_ident: : index of driver to get handle to.

Returns: Human-readable identifier of joypad driver at index. Can be NULL if nothing found.

Here is the caller graph for this function: