|
RetroArch
|
#include <stdlib.h>#include <stddef.h>#include <string.h>#include <boolean.h>#include <retro_inline.h>#include <compat/strl.h>#include <dynamic/dylib.h>#include "../../tasks/tasks_internal.h"#include "../input_driver.h"#include "../../verbosity.h"Classes | |
| struct | XINPUT_GAMEPAD |
| struct | XINPUT_STATE |
| struct | XINPUT_VIBRATION |
| struct | xinput_joypad_state |
Macros | |
| #define | XINPUT_GAMEPAD_DPAD_UP 0x0001 |
| #define | XINPUT_GAMEPAD_DPAD_DOWN 0x0002 |
| #define | XINPUT_GAMEPAD_DPAD_LEFT 0x0004 |
| #define | XINPUT_GAMEPAD_DPAD_RIGHT 0x0008 |
| #define | XINPUT_GAMEPAD_START 0x0010 |
| #define | XINPUT_GAMEPAD_BACK 0x0020 |
| #define | XINPUT_GAMEPAD_LEFT_THUMB 0x0040 |
| #define | XINPUT_GAMEPAD_RIGHT_THUMB 0x0080 |
| #define | XINPUT_GAMEPAD_LEFT_SHOULDER 0x0100 |
| #define | XINPUT_GAMEPAD_RIGHT_SHOULDER 0x0200 |
| #define | XINPUT_GAMEPAD_A 0x1000 |
| #define | XINPUT_GAMEPAD_B 0x2000 |
| #define | XINPUT_GAMEPAD_X 0x4000 |
| #define | XINPUT_GAMEPAD_Y 0x8000 |
| #define | XINPUT_GAMEPAD_GUIDE 0x0400 |
| #define | ERROR_DEVICE_NOT_CONNECTED 1167 |
Typedefs | |
| typedef uint32_t(__stdcall * | XInputGetStateEx_t) (uint32_t, XINPUT_STATE *) |
| typedef uint32_t(__stdcall * | XInputSetState_t) (uint32_t, XINPUT_VIBRATION *) |
Functions | |
| static INLINE int | pad_index_to_xuser_index (unsigned pad) |
| const char * | xinput_joypad_name (unsigned pad) |
| static bool | xinput_joypad_init (void *data) |
| static bool | xinput_joypad_query_pad (unsigned pad) |
| static void | xinput_joypad_destroy (void) |
| static bool | xinput_joypad_button (unsigned port_num, uint16_t joykey) |
| static int16_t | xinput_joypad_axis (unsigned port_num, uint32_t joyaxis) |
| static void | xinput_joypad_poll (void) |
| static bool | xinput_joypad_rumble (unsigned pad, enum retro_rumble_effect effect, uint16_t strength) |
Variables | |
| int | g_xinput_pad_indexes [MAX_USERS] |
| bool | g_xinput_block_pads |
| static XInputGetStateEx_t | g_XInputGetStateEx |
| static XInputSetState_t | g_XInputSetState |
| static bool | g_xinput_guide_button_supported |
| static XINPUT_VIBRATION | g_xinput_rumble_states [4] |
| static xinput_joypad_state | g_xinput_states [4] |
| static const char *const | XBOX_CONTROLLER_NAMES [4] |
| static const char *const | XBOX_ONE_CONTROLLER_NAMES [4] |
| static const uint16_t | button_index_to_bitmap_code [] |
| input_device_driver_t | xinput_joypad |
| #define ERROR_DEVICE_NOT_CONNECTED 1167 |
| #define XINPUT_GAMEPAD_A 0x1000 |
| #define XINPUT_GAMEPAD_B 0x2000 |
| #define XINPUT_GAMEPAD_BACK 0x0020 |
| #define XINPUT_GAMEPAD_DPAD_DOWN 0x0002 |
| #define XINPUT_GAMEPAD_DPAD_LEFT 0x0004 |
| #define XINPUT_GAMEPAD_DPAD_RIGHT 0x0008 |
| #define XINPUT_GAMEPAD_DPAD_UP 0x0001 |
| #define XINPUT_GAMEPAD_GUIDE 0x0400 |
| #define XINPUT_GAMEPAD_LEFT_SHOULDER 0x0100 |
| #define XINPUT_GAMEPAD_LEFT_THUMB 0x0040 |
| #define XINPUT_GAMEPAD_RIGHT_SHOULDER 0x0200 |
| #define XINPUT_GAMEPAD_RIGHT_THUMB 0x0080 |
| #define XINPUT_GAMEPAD_START 0x0010 |
| #define XINPUT_GAMEPAD_X 0x4000 |
| #define XINPUT_GAMEPAD_Y 0x8000 |
| typedef uint32_t(__stdcall * XInputGetStateEx_t) (uint32_t, XINPUT_STATE *) |
| typedef uint32_t(__stdcall * XInputSetState_t) (uint32_t, XINPUT_VIBRATION *) |
|
static |
| const char* xinput_joypad_name | ( | unsigned | pad | ) |
|
static |
|
static |
| bool g_xinput_block_pads |
|
static |
| int g_xinput_pad_indexes[MAX_USERS] |
|
static |
|
static |
|
static |
|
static |
| input_device_driver_t xinput_joypad |
1.8.15