|
RetroArch
|
#include <stdint.h>#include <stdlib.h>#include <string.h>#include <boolean.h>#include <retro_endianness.h>#include <retro_miscellaneous.h>#include <retro_timers.h>#include "joypad_connection.h"#include "../input_defines.h"#include "../common/hid/hid_device_driver.h"Classes | |
| struct | axis_t |
| struct | connect_wii_joystick_t |
| struct | connect_wii_classic_ctrl_t |
| struct | connect_wii_expansion_t |
| struct | connect_wii_wiimote_t |
Typedefs | |
| typedef struct axis_t | axis_t |
| typedef struct connect_wii_joystick_t | connect_wii_joystick_t |
| typedef struct connect_wii_classic_ctrl_t | connect_wii_classic_ctrl_t |
| typedef struct connect_wii_expansion_t | connect_wii_expansion_t |
| typedef struct connect_wii_wiimote_t | connect_wii_wiimote |
Variables | |
| pad_connection_interface_t | pad_connection_wii |
| #define CLASSIC_CTRL_BUTTON_ALL 0xFEFF |
| #define EXP_CLASSIC 2 |
| #define EXP_HANDSHAKE_LEN 224 |
| #define EXP_NONE 0 |
| #define IDENT_CC 0xA4200101 |
| #define IDENT_NUNCHUK 0xA4200000 |
| #define WIIMOTE_BUTTON_ALL 0x1F9F |
| #define WIIMOTE_LED_1 0x10 |
| #define WIIMOTE_LED_2 0x20 |
| #define WIIMOTE_LED_3 0x40 |
| #define WIIMOTE_LED_4 0x80 |
| #define WIIMOTE_LED_NONE 0x00 |
| #define WIIMOTE_STATE_CONNECTED 0x0008 |
| #define WIIMOTE_STATE_DEV_FOUND 0x0001 |
| #define WIIMOTE_STATE_EXP 0x0040 |
| #define WIIMOTE_STATE_HANDSHAKE 0x0002 /* Actual connection exists but no handshake yet */ |
| #define WIIMOTE_STATE_HANDSHAKE_COMPLETE 0x0004 |
| #define WIIMOTE_TOGGLE_STATE | ( | wm, | |
| s | |||
| ) | ((wm->state & (s)) ? WIIMOTE_DISABLE_STATE(wm, s) : WIIMOTE_ENABLE_STATE(wm, s)) |
| #define WM_BT_INPUT 0x01 |
| #define WM_BT_OUTPUT 0x02 |
| #define WM_CMD_CTRL_STATUS 0x15 |
| #define WM_CMD_IR 0x13 |
| #define WM_CMD_IR_2 0x1A |
| #define WM_CMD_LED 0x11 |
| #define WM_CMD_READ_DATA 0x17 |
| #define WM_CMD_REPORT_TYPE 0x12 |
| #define WM_CMD_RUMBLE 0x13 |
| #define WM_CMD_WRITE_DATA 0x16 |
| #define WM_CTRL_STATUS_BYTE1_ATTACHMENT 0x02 |
| #define WM_CTRL_STATUS_BYTE1_IR_ENABLED 0x08 |
| #define WM_CTRL_STATUS_BYTE1_LED_1 0x10 |
| #define WM_CTRL_STATUS_BYTE1_LED_2 0x20 |
| #define WM_CTRL_STATUS_BYTE1_LED_3 0x40 |
| #define WM_CTRL_STATUS_BYTE1_LED_4 0x80 |
| #define WM_CTRL_STATUS_BYTE1_SPEAKER_ENABLED 0x04 |
| #define WM_EXP_MEM_BASE 0x04A40000 |
| #define WM_EXP_MEM_CALIBR 0x04A40020 |
| #define WM_EXP_MEM_ENABLE 0x04A40040 |
| #define WM_MAX_BATTERY_CODE 0xC8 |
| #define WM_MEM_OFFSET_CALIBRATION 0x16 |
| #define WM_RPT_BTN 0x30 |
| #define WM_RPT_BTN_ACC 0x31 |
| #define WM_RPT_BTN_ACC_EXP 0x35 |
| #define WM_RPT_BTN_ACC_IR 0x33 |
| #define WM_RPT_BTN_ACC_IR_EXP 0x37 |
| #define WM_RPT_BTN_EXP 0x34 |
| #define WM_RPT_BTN_IR_EXP 0x36 |
| #define WM_RPT_CTRL_STATUS 0x20 |
| #define WM_RPT_READ 0x21 |
| #define WM_RPT_WRITE 0x22 |
| #define WM_SET_REPORT 0x50 |
| typedef struct connect_wii_classic_ctrl_t connect_wii_classic_ctrl_t |
| typedef struct connect_wii_expansion_t connect_wii_expansion_t |
| typedef struct connect_wii_joystick_t connect_wii_joystick_t |
| typedef struct connect_wii_wiimote_t connect_wii_wiimote |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| pad_connection_interface_t pad_connection_wii |
1.8.15