RetroArch
Classes | Functions | Variables
xdk_joypad.c File Reference
#include <stdint.h>
#include "../input_driver.h"
#include "../../tasks/tasks_internal.h"
Include dependency graph for xdk_joypad.c:

Classes

struct  xinput_joypad_state
 

Functions

static const char * xdk_joypad_name (unsigned pad)
 
static void xdk_joypad_autodetect_add (unsigned autoconf_pad)
 
static bool xdk_joypad_init (void *data)
 
static bool xdk_joypad_button (unsigned port_num, uint16_t joykey)
 
static int16_t xdk_joypad_axis (unsigned port_num, uint32_t joyaxis)
 
static void xdk_joypad_poll (void)
 
static bool xdk_joypad_query_pad (unsigned pad)
 
static void xdk_joypad_destroy (void)
 

Variables

static xinput_joypad_state g_xinput_states [MAX_PADS]
 
static const char *const XBOX_CONTROLLER_NAMES [4]
 
static const uint16_t button_index_to_bitmap_code []
 
input_device_driver_t xdk_joypad
 

Function Documentation

◆ xdk_joypad_autodetect_add()

static void xdk_joypad_autodetect_add ( unsigned  autoconf_pad)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xdk_joypad_axis()

static int16_t xdk_joypad_axis ( unsigned  port_num,
uint32_t  joyaxis 
)
static

◆ xdk_joypad_button()

static bool xdk_joypad_button ( unsigned  port_num,
uint16_t  joykey 
)
static

◆ xdk_joypad_destroy()

static void xdk_joypad_destroy ( void  )
static
Here is the call graph for this function:

◆ xdk_joypad_init()

static bool xdk_joypad_init ( void data)
static
Here is the call graph for this function:

◆ xdk_joypad_name()

static const char* xdk_joypad_name ( unsigned  pad)
static
Here is the caller graph for this function:

◆ xdk_joypad_poll()

static void xdk_joypad_poll ( void  )
static
Here is the call graph for this function:

◆ xdk_joypad_query_pad()

static bool xdk_joypad_query_pad ( unsigned  pad)
static

Variable Documentation

◆ button_index_to_bitmap_code

const uint16_t button_index_to_bitmap_code[]
static
Initial value:
= {
}
#define XINPUT_GAMEPAD_B
Definition: xinput_joypad.c:71
#define XINPUT_GAMEPAD_START
Definition: xinput_joypad.c:64
#define XINPUT_GAMEPAD_A
Definition: xinput_joypad.c:70
#define XINPUT_GAMEPAD_LEFT_THUMB
Definition: xinput_joypad.c:66
#define XINPUT_GAMEPAD_Y
Definition: xinput_joypad.c:73
#define XINPUT_GAMEPAD_RIGHT_SHOULDER
Definition: xinput_joypad.c:69
#define XINPUT_GAMEPAD_RIGHT_THUMB
Definition: xinput_joypad.c:67
#define XINPUT_GAMEPAD_LEFT_SHOULDER
Definition: xinput_joypad.c:68
#define XINPUT_GAMEPAD_X
Definition: xinput_joypad.c:72
#define XINPUT_GAMEPAD_BACK
Definition: xinput_joypad.c:65

◆ g_xinput_states

xinput_joypad_state g_xinput_states[MAX_PADS]
static

◆ XBOX_CONTROLLER_NAMES

const char* const XBOX_CONTROLLER_NAMES[4]
static
Initial value:
=
{
"XInput Controller (User 1)",
"XInput Controller (User 2)",
"XInput Controller (User 3)",
"XInput Controller (User 4)"
}

◆ xdk_joypad

Initial value:
= {
"xdk",
}
static void xdk_joypad_destroy(void)
Definition: xdk_joypad.c:307
static int16_t xdk_joypad_axis(unsigned port_num, uint32_t joyaxis)
Definition: xdk_joypad.c:158
static void xdk_joypad_poll(void)
Definition: xdk_joypad.c:220
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool xdk_joypad_button(unsigned port_num, uint16_t joykey)
Definition: xdk_joypad.c:92
static bool xdk_joypad_init(void *data)
Definition: xdk_joypad.c:59
static bool xdk_joypad_query_pad(unsigned pad)
Definition: xdk_joypad.c:302
static const char * xdk_joypad_name(unsigned pad)
Definition: xdk_joypad.c:42