RetroArch
Classes | Macros | Typedefs | Functions | Variables
task_autodetect.c File Reference
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <compat/strl.h>
#include <lists/dir_list.h>
#include <file/file_path.h>
#include <file/config_file.h>
#include <string/stdstring.h>
#include "../input/input_driver.h"
#include "../input/include/blissbox.h"
#include "../configuration.h"
#include "../file_path_special.h"
#include "../list_special.h"
#include "../verbosity.h"
#include "../retroarch.h"
#include "tasks_internal.h"
Include dependency graph for task_autodetect.c:
This graph shows which files directly or indirectly include this file:

Classes

struct  autoconfig_disconnect
 
struct  autoconfig_params
 

Macros

#define USB_HID_GET_REPORT   0x01
 
#define USB_CTRL_IN   LIBUSB_ENDPOINT_IN|LIBUSB_REQUEST_TYPE_CLASS|LIBUSB_RECIPIENT_INTERFACE
 
#define USB_PACKET_CTRL_LEN   5
 
#define USB_TIMEOUT   5000 /* timeout in ms */
 

Typedefs

typedef struct autoconfig_disconnect autoconfig_disconnect_t
 
typedef struct autoconfig_params autoconfig_params_t
 

Functions

bool input_autoconfigure_get_swap_override (void)
 
void input_autoconfigure_joypad_reindex_devices ()
 
static void input_autoconfigure_joypad_conf (config_file_t *conf, struct retro_keybind *binds)
 
static int input_autoconfigure_joypad_try_from_conf (config_file_t *conf, autoconfig_params_t *params)
 
static void input_autoconfigure_joypad_add (config_file_t *conf, autoconfig_params_t *params, retro_task_t *task)
 
static int input_autoconfigure_joypad_from_conf (config_file_t *conf, autoconfig_params_t *params, retro_task_t *task)
 
static bool input_autoconfigure_joypad_from_conf_dir (autoconfig_params_t *params, retro_task_t *task)
 
static bool input_autoconfigure_joypad_from_conf_internal (autoconfig_params_t *params, retro_task_t *task)
 
static void input_autoconfigure_params_free (autoconfig_params_t *params)
 
static const blissbox_pad_type_tinput_autoconfigure_get_blissbox_pad_type_libusb (int vid, int pid)
 
static const blissbox_pad_type_tinput_autoconfigure_get_blissbox_pad_type (int vid, int pid)
 
static void input_autoconfigure_override_handler (autoconfig_params_t *params)
 
static void input_autoconfigure_connect_handler (retro_task_t *task)
 
static void input_autoconfigure_disconnect_handler (retro_task_t *task)
 
bool input_autoconfigure_disconnect (unsigned i, const char *ident)
 
void input_autoconfigure_reset (void)
 
bool input_is_autoconfigured (unsigned i)
 
unsigned input_autoconfigure_get_device_name_index (unsigned i)
 
bool input_autoconfigure_connect (const char *name, const char *display_name, const char *driver, unsigned idx, unsigned vid, unsigned pid)
 

Variables

static const blissbox_pad_type_tblissbox_pads [BLISSBOX_MAX_PADS] = {NULL}
 
static bool input_autoconfigured [MAX_USERS]
 
static unsigned input_device_name_index [MAX_INPUT_DEVICES]
 
static bool input_autoconfigure_swap_override
 

Macro Definition Documentation

◆ USB_CTRL_IN

#define USB_CTRL_IN   LIBUSB_ENDPOINT_IN|LIBUSB_REQUEST_TYPE_CLASS|LIBUSB_RECIPIENT_INTERFACE

◆ USB_HID_GET_REPORT

#define USB_HID_GET_REPORT   0x01

◆ USB_PACKET_CTRL_LEN

#define USB_PACKET_CTRL_LEN   5

◆ USB_TIMEOUT

#define USB_TIMEOUT   5000 /* timeout in ms */

Typedef Documentation

◆ autoconfig_disconnect_t

◆ autoconfig_params_t

Function Documentation

◆ input_autoconfigure_connect()

bool input_autoconfigure_connect ( const char *  name,
const char *  display_name,
const char *  driver,
unsigned  idx,
unsigned  vid,
unsigned  pid 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_connect_handler()

static void input_autoconfigure_connect_handler ( retro_task_t task)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_disconnect()

bool input_autoconfigure_disconnect ( unsigned  i,
const char *  ident 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_disconnect_handler()

static void input_autoconfigure_disconnect_handler ( retro_task_t task)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_get_blissbox_pad_type()

static const blissbox_pad_type_t* input_autoconfigure_get_blissbox_pad_type ( int  vid,
int  pid 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_get_blissbox_pad_type_libusb()

static const blissbox_pad_type_t* input_autoconfigure_get_blissbox_pad_type_libusb ( int  vid,
int  pid 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_get_device_name_index()

unsigned input_autoconfigure_get_device_name_index ( unsigned  i)
Here is the caller graph for this function:

◆ input_autoconfigure_get_swap_override()

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

◆ input_autoconfigure_joypad_add()

static void input_autoconfigure_joypad_add ( config_file_t conf,
autoconfig_params_t params,
retro_task_t task 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_joypad_conf()

static void input_autoconfigure_joypad_conf ( config_file_t conf,
struct retro_keybind binds 
)
static
Here is the caller graph for this function:

◆ input_autoconfigure_joypad_from_conf()

static int input_autoconfigure_joypad_from_conf ( config_file_t conf,
autoconfig_params_t params,
retro_task_t task 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_joypad_from_conf_dir()

static bool input_autoconfigure_joypad_from_conf_dir ( autoconfig_params_t params,
retro_task_t task 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_joypad_from_conf_internal()

static bool input_autoconfigure_joypad_from_conf_internal ( autoconfig_params_t params,
retro_task_t task 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_joypad_reindex_devices()

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

◆ input_autoconfigure_joypad_try_from_conf()

static int input_autoconfigure_joypad_try_from_conf ( config_file_t conf,
autoconfig_params_t params 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_override_handler()

static void input_autoconfigure_override_handler ( autoconfig_params_t params)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_params_free()

static void input_autoconfigure_params_free ( autoconfig_params_t params)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ input_autoconfigure_reset()

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

◆ input_is_autoconfigured()

bool input_is_autoconfigured ( unsigned  i)
Here is the caller graph for this function:

Variable Documentation

◆ blissbox_pads

const blissbox_pad_type_t* blissbox_pads[BLISSBOX_MAX_PADS] = {NULL}
static

◆ input_autoconfigure_swap_override

bool input_autoconfigure_swap_override
static

◆ input_autoconfigured

bool input_autoconfigured[MAX_USERS]
static

◆ input_device_name_index

unsigned input_device_name_index[MAX_INPUT_DEVICES]
static