RetroArch
Classes | Macros
hid_driver.h File Reference
#include "../connect/joypad_connection.h"
#include "../input_driver.h"
Include dependency graph for hid_driver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hid_driver
 
struct  hid_driver_instance
 

Macros

#define HID_REPORT_OUTPUT   2
 
#define HID_REPORT_FEATURE   3
 
#define HID_GET_BUTTONS(pad, state)
 
#define HID_BUTTON(pad, key)
 
#define HID_AXIS(pad, axis)
 
#define HID_PAD_NAME(pad)   hid_instance.os_driver->name(hid_instance.os_driver_data, pad)
 
#define HID_SET_PROTOCOL(pad, protocol)   hid_instance.os_driver->set_protocol(pad, protocol)
 
#define HID_SET_REPORT(pad, rpttype, rptid, data, len)   hid_instance.os_driver->set_report(pad, rpttype, rptid, data, len)
 
#define HID_SEND_CONTROL(pad, data, len)   hid_instance.os_driver->send_control(pad, data, len)
 
#define HID_POLL()
 
#define HID_MAX_SLOT()   hid_instance.max_slot
 
#define HID_PAD_CONNECTION_PTR(slot)   &(hid_instance.pad_list[(slot)])
 

Macro Definition Documentation

◆ HID_AXIS

#define HID_AXIS (   pad,
  axis 
)
Value:
int16_t(* axis)(void *handle, unsigned pad, uint32_t axis)
Definition: hid_driver.h:43
hid_driver_instance_t hid_instance
Definition: hid_device_driver.c:19
void * os_driver_data
Definition: hid_driver.h:78
hid_driver_t * os_driver
Definition: hid_driver.h:77

◆ HID_BUTTON

#define HID_BUTTON (   pad,
  key 
)
Value:
bool(* button)(void *handle, unsigned pad, uint16_t button)
Definition: hid_driver.h:41
hid_driver_instance_t hid_instance
Definition: hid_device_driver.c:19
void * os_driver_data
Definition: hid_driver.h:78
hid_driver_t * os_driver
Definition: hid_driver.h:77

◆ HID_GET_BUTTONS

#define HID_GET_BUTTONS (   pad,
  state 
)
Value:
hid_driver_instance_t hid_instance
Definition: hid_device_driver.c:19
void * os_driver_data
Definition: hid_driver.h:78
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
void(* get_buttons)(void *handle, unsigned pad, input_bits_t *state)
Definition: hid_driver.h:42
hid_driver_t * os_driver
Definition: hid_driver.h:77

◆ HID_MAX_SLOT

#define HID_MAX_SLOT ( )    hid_instance.max_slot

◆ HID_PAD_CONNECTION_PTR

#define HID_PAD_CONNECTION_PTR (   slot)    &(hid_instance.pad_list[(slot)])

◆ HID_PAD_NAME

#define HID_PAD_NAME (   pad)    hid_instance.os_driver->name(hid_instance.os_driver_data, pad)

◆ HID_POLL

#define HID_POLL ( )
Value:
void(* poll)(void *handle)
Definition: hid_driver.h:44
hid_driver_instance_t hid_instance
Definition: hid_device_driver.c:19
void * os_driver_data
Definition: hid_driver.h:78
hid_driver_t * os_driver
Definition: hid_driver.h:77

◆ HID_REPORT_FEATURE

#define HID_REPORT_FEATURE   3

◆ HID_REPORT_OUTPUT

#define HID_REPORT_OUTPUT   2

◆ HID_SEND_CONTROL

#define HID_SEND_CONTROL (   pad,
  data,
  len 
)    hid_instance.os_driver->send_control(pad, data, len)

◆ HID_SET_PROTOCOL

#define HID_SET_PROTOCOL (   pad,
  protocol 
)    hid_instance.os_driver->set_protocol(pad, protocol)

◆ HID_SET_REPORT

#define HID_SET_REPORT (   pad,
  rpttype,
  rptid,
  data,
  len 
)    hid_instance.os_driver->set_report(pad, rpttype, rptid, data, len)