RetroArch
|
#include "hid_device_driver.h"
Classes | |
struct | ds4_instance |
Typedefs | |
typedef struct ds4_instance | ds4_instance_t |
Functions | |
static void * | ds4_init (void *handle) |
static void | ds4_free (void *data) |
static void | ds4_handle_packet (void *data, uint8_t *buffer, size_t size) |
static bool | ds4_detect (uint16_t vendor_id, uint16_t product_id) |
static void * | ds4_pad_init (void *data, uint32_t slot, hid_driver_t *driver) |
static void | ds4_pad_deinit (void *data) |
static void | ds4_get_buttons (void *data, input_bits_t *state) |
static void | ds4_packet_handler (void *data, uint8_t *packet, uint16_t size) |
static void | ds4_set_rumble (void *data, enum retro_rumble_effect effect, uint16_t strength) |
static int16_t | ds4_get_axis (void *data, unsigned axis) |
static const char * | ds4_get_name (void *data) |
static bool | ds4_button (void *data, uint16_t joykey) |
Variables | |
pad_connection_interface_t | ds4_pad_connection |
hid_device_t | ds4_hid_device |
typedef struct ds4_instance ds4_instance_t |
|
static |
I'm leaving this code in here for posterity, and because maybe it can be used on other platforms. But using the DS4 on the Wii U directly is impossible because it doesn't generate a HID event. Which makes me think it's not a HID device at all–at least, not over USB.
I imagine it might be useful in Bluetooth mode, though.
|
static |
|
static |
hid_device_t ds4_hid_device |
pad_connection_interface_t ds4_pad_connection |