RetroArch
Classes | Macros | Functions | Variables
hid.h File Reference
#include "hid_types.h"
#include "input.h"
#include "../../common/hid/hid_device_driver.h"
Include dependency graph for hid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wiiu_hid
 
struct  wiiu_adapter
 
struct  wiiu_attach
 
struct  _wiiu_event_list
 
struct  _wiiu_adapter_list
 

Macros

#define DEVICE_UNUSED   0
 
#define DEVICE_USED   1
 
#define ADAPTER_STATE_NEW   0
 
#define ADAPTER_STATE_READY   1
 
#define ADAPTER_STATE_READING   2
 
#define ADAPTER_STATE_DONE   3
 
#define ADAPTER_STATE_GC   4
 

Functions

static voidalloc_zeroed (size_t alignment, size_t size)
 
static OSThreadnew_thread (void)
 
static wiiu_hid_tnew_hid (void)
 
static void delete_hid (wiiu_hid_t *hid)
 
static void delete_hidclient (HIDClient *client)
 
static HIDClientnew_hidclient (void)
 
static wiiu_adapter_tnew_adapter (wiiu_attach_event *event)
 
static void delete_adapter (wiiu_adapter_t *adapter)
 
static wiiu_attach_eventnew_attach_event (HIDDevice *device)
 
static void delete_attach_event (wiiu_attach_event *)
 
static void wiiu_hid_init_lists (void)
 
static void start_polling_thread (wiiu_hid_t *hid)
 
static void stop_polling_thread (wiiu_hid_t *hid)
 
static int wiiu_hid_polling_thread (int argc, const char **argv)
 
static int32_t wiiu_attach_callback (HIDClient *client, HIDDevice *device, uint32_t attach)
 
static wiiu_attach_eventsynchronized_get_events_list (void)
 
static void wiiu_handle_attach_events (wiiu_hid_t *hid, wiiu_attach_event *list)
 
static void wiiu_hid_attach (wiiu_hid_t *hid, wiiu_attach_event *event)
 
static void wiiu_hid_detach (wiiu_hid_t *hid, wiiu_attach_event *event)
 
static void synchronized_process_adapters (wiiu_hid_t *hid)
 
static void synchronized_add_to_adapters_list (wiiu_adapter_t *adapter)
 
static wiiu_adapter_tsynchronized_remove_from_adapters_list (uint32_t handle)
 
static void synchronized_add_event (wiiu_attach_event *event)
 
static void wiiu_start_read_loop (wiiu_adapter_t *adapter)
 
static void wiiu_hid_read_loop_callback (uint32_t handle, int32_t error, uint8_t *buffer, uint32_t buffer_size, void *userdata)
 
static void wiiu_hid_polling_thread_cleanup (OSThread *thread, void *stack)
 

Variables

wiiu_pad_functions_t pad_functions
 
input_device_driver_t wiiu_joypad
 
input_device_driver_t wpad_driver
 
input_device_driver_t kpad_driver
 
input_device_driver_t hidpad_driver
 
hid_driver_t wiiu_hid
 

Macro Definition Documentation

◆ ADAPTER_STATE_DONE

#define ADAPTER_STATE_DONE   3

◆ ADAPTER_STATE_GC

#define ADAPTER_STATE_GC   4

◆ ADAPTER_STATE_NEW

#define ADAPTER_STATE_NEW   0

◆ ADAPTER_STATE_READING

#define ADAPTER_STATE_READING   2

◆ ADAPTER_STATE_READY

#define ADAPTER_STATE_READY   1

◆ DEVICE_UNUSED

#define DEVICE_UNUSED   0

◆ DEVICE_USED

#define DEVICE_USED   1

Function Documentation

◆ alloc_zeroed()

static void* alloc_zeroed ( size_t  alignment,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ delete_adapter()

static void delete_adapter ( wiiu_adapter_t adapter)
static

◆ delete_attach_event()

static void delete_attach_event ( wiiu_attach_event )
static

◆ delete_hid()

static void delete_hid ( wiiu_hid_t hid)
static

◆ delete_hidclient()

static void delete_hidclient ( HIDClient client)
static

◆ new_adapter()

static wiiu_adapter_t* new_adapter ( wiiu_attach_event event)
static

◆ new_attach_event()

static wiiu_attach_event* new_attach_event ( HIDDevice device)
static

◆ new_hid()

static wiiu_hid_t* new_hid ( void  )
static

◆ new_hidclient()

static HIDClient* new_hidclient ( void  )
static

◆ new_thread()

static OSThread* new_thread ( void  )
static

◆ start_polling_thread()

static void start_polling_thread ( wiiu_hid_t hid)
static

◆ stop_polling_thread()

static void stop_polling_thread ( wiiu_hid_t hid)
static

◆ synchronized_add_event()

static void synchronized_add_event ( wiiu_attach_event event)
static

◆ synchronized_add_to_adapters_list()

static void synchronized_add_to_adapters_list ( wiiu_adapter_t adapter)
static

◆ synchronized_get_events_list()

static wiiu_attach_event* synchronized_get_events_list ( void  )
static

◆ synchronized_process_adapters()

static void synchronized_process_adapters ( wiiu_hid_t hid)
static

◆ synchronized_remove_from_adapters_list()

static wiiu_adapter_t* synchronized_remove_from_adapters_list ( uint32_t  handle)
static

◆ wiiu_attach_callback()

static int32_t wiiu_attach_callback ( HIDClient client,
HIDDevice device,
uint32_t  attach 
)
static

◆ wiiu_handle_attach_events()

static void wiiu_handle_attach_events ( wiiu_hid_t hid,
wiiu_attach_event list 
)
static

◆ wiiu_hid_attach()

static void wiiu_hid_attach ( wiiu_hid_t hid,
wiiu_attach_event event 
)
static

◆ wiiu_hid_detach()

static void wiiu_hid_detach ( wiiu_hid_t hid,
wiiu_attach_event event 
)
static

◆ wiiu_hid_init_lists()

static void wiiu_hid_init_lists ( void  )
static

◆ wiiu_hid_polling_thread()

static int wiiu_hid_polling_thread ( int  argc,
const char **  argv 
)
static

◆ wiiu_hid_polling_thread_cleanup()

static void wiiu_hid_polling_thread_cleanup ( OSThread thread,
void stack 
)
static

◆ wiiu_hid_read_loop_callback()

static void wiiu_hid_read_loop_callback ( uint32_t  handle,
int32_t  error,
uint8_t buffer,
uint32_t  buffer_size,
void userdata 
)
static

◆ wiiu_start_read_loop()

static void wiiu_start_read_loop ( wiiu_adapter_t adapter)
static

Variable Documentation

◆ hidpad_driver

input_device_driver_t hidpad_driver

◆ kpad_driver

input_device_driver_t kpad_driver

◆ pad_functions

wiiu_pad_functions_t pad_functions

◆ wiiu_hid

◆ wiiu_joypad

input_device_driver_t wiiu_joypad

◆ wpad_driver

input_device_driver_t wpad_driver