RetroArch
Classes | Typedefs | Functions | Variables
sdl_joypad.c File Reference
#include <stdint.h>
#include <compat/strl.h>
#include "SDL.h"
#include "../input_driver.h"
#include "../../tasks/tasks_internal.h"
#include "../../verbosity.h"
Include dependency graph for sdl_joypad.c:

Classes

struct  _sdl_joypad
 

Typedefs

typedef struct _sdl_joypad sdl_joypad_t
 

Functions

static const char * sdl_joypad_name (unsigned pad)
 
static uint8_t sdl_pad_get_button (sdl_joypad_t *pad, unsigned button)
 
static uint8_t sdl_pad_get_hat (sdl_joypad_t *pad, unsigned hat)
 
static int16_t sdl_pad_get_axis (sdl_joypad_t *pad, unsigned axis)
 
static void sdl_pad_connect (unsigned id)
 
static void sdl_pad_disconnect (unsigned id)
 
static void sdl_joypad_destroy (void)
 
static bool sdl_joypad_init (void *data)
 
static bool sdl_joypad_button (unsigned port, uint16_t joykey)
 
static int16_t sdl_joypad_axis (unsigned port, uint32_t joyaxis)
 
static void sdl_joypad_poll (void)
 
static bool sdl_joypad_query_pad (unsigned pad)
 

Variables

const int g_subsystem = SDL_INIT_JOYSTICK
 
static sdl_joypad_t sdl_pads [MAX_USERS]
 
input_device_driver_t sdl_joypad
 

Typedef Documentation

◆ sdl_joypad_t

typedef struct _sdl_joypad sdl_joypad_t

Function Documentation

◆ sdl_joypad_axis()

static int16_t sdl_joypad_axis ( unsigned  port,
uint32_t  joyaxis 
)
static
Here is the call graph for this function:

◆ sdl_joypad_button()

static bool sdl_joypad_button ( unsigned  port,
uint16_t  joykey 
)
static
Here is the call graph for this function:

◆ sdl_joypad_destroy()

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

◆ sdl_joypad_init()

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

◆ sdl_joypad_name()

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

◆ sdl_joypad_poll()

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

◆ sdl_joypad_query_pad()

static bool sdl_joypad_query_pad ( unsigned  pad)
static

◆ sdl_pad_connect()

static void sdl_pad_connect ( unsigned  id)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_pad_disconnect()

static void sdl_pad_disconnect ( unsigned  id)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_pad_get_axis()

static int16_t sdl_pad_get_axis ( sdl_joypad_t pad,
unsigned  axis 
)
static
Here is the caller graph for this function:

◆ sdl_pad_get_button()

static uint8_t sdl_pad_get_button ( sdl_joypad_t pad,
unsigned  button 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_pad_get_hat()

static uint8_t sdl_pad_get_hat ( sdl_joypad_t pad,
unsigned  hat 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_subsystem

const int g_subsystem = SDL_INIT_JOYSTICK

◆ sdl_joypad

Initial value:
= {
"sdl"
}
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void sdl_joypad_destroy(void)
Definition: sdl_joypad.c:246
static bool sdl_joypad_init(void *data)
Definition: sdl_joypad.c:256
static void sdl_joypad_poll(void)
Definition: sdl_joypad.c:382
static bool sdl_joypad_query_pad(unsigned pad)
Definition: sdl_joypad.c:464
static int16_t sdl_joypad_axis(unsigned port, uint32_t joyaxis)
Definition: sdl_joypad.c:350
static bool sdl_joypad_button(unsigned port, uint16_t joykey)
Definition: sdl_joypad.c:308
static const char * sdl_joypad_name(unsigned pad)
Definition: sdl_joypad.c:56

◆ sdl_pads

sdl_joypad_t sdl_pads[MAX_USERS]
static