RetroArch
Functions | Variables
hid_device_driver.c File Reference
#include "hid_device_driver.h"
Include dependency graph for hid_device_driver.c:

Functions

hid_device_thid_device_driver_lookup (uint16_t vendor_id, uint16_t product_id)
 
joypad_connection_thid_pad_register (void *pad_handle, pad_connection_interface_t *iface)
 
void hid_pad_deregister (joypad_connection_t *pad)
 
static bool init_pad_list (hid_driver_instance_t *instance, unsigned slots)
 
bool hid_init (hid_driver_instance_t *instance, hid_driver_t *hid_driver, input_device_driver_t *pad_driver, unsigned slots)
 
void hid_deinit (hid_driver_instance_t *instance)
 

Variables

hid_driver_instance_t hid_instance = {0}
 
hid_device_thid_device_list []
 

Function Documentation

◆ hid_deinit()

void hid_deinit ( hid_driver_instance_t instance)

Tear down the HID system set up by hid_init()

instance the hid_driver_instance_t to tear down.

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

◆ hid_device_driver_lookup()

hid_device_t* hid_device_driver_lookup ( uint16_t  vendor_id,
uint16_t  product_id 
)
Here is the caller graph for this function:

◆ hid_init()

bool hid_init ( hid_driver_instance_t instance,
hid_driver_t hid_driver,
input_device_driver_t pad_driver,
unsigned  slots 
)

Fill in instance with data from initialized hid subsystem.

instance the hid_driver_instance_t struct to fill in hid_driver the HID driver to initialize pad_driver the gamepad driver to handle HID pads detected by the HID driver.

Returns
true if init is successful, false otherwise.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hid_pad_deregister()

void hid_pad_deregister ( joypad_connection_t pad)
Here is the caller graph for this function:

◆ hid_pad_register()

joypad_connection_t* hid_pad_register ( void pad_handle,
pad_connection_interface_t iface 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_pad_list()

static bool init_pad_list ( hid_driver_instance_t instance,
unsigned  slots 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ hid_device_list

hid_device_t* hid_device_list[]
Initial value:
= {
}
#define NULL
Pointer to 0.
Definition: gctypes.h:65
hid_device_t wiiu_gca_hid_device
Definition: device_wiiu_gca.c:165
hid_device_t ds3_hid_device
Definition: device_ds3.c:200

◆ hid_instance

hid_driver_instance_t hid_instance = {0}