RetroArch
Macros | Functions | Variables
ctr_joypad.c File Reference
#include "../input_driver.h"
#include "../../tasks/tasks_internal.h"
#include "../../retroarch.h"
#include "../../command.h"
#include "string.h"
#include "3ds.h"
Include dependency graph for ctr_joypad.c:

Macros

#define MAX_PADS   1
 

Functions

static const char * ctr_joypad_name (unsigned pad)
 
static void ctr_joypad_autodetect_add (unsigned autoconf_pad)
 
static bool ctr_joypad_init (void *data)
 
static bool ctr_joypad_button (unsigned port_num, uint16_t key)
 
static void ctr_joypad_get_buttons (unsigned port_num, input_bits_t *state)
 
static int16_t ctr_joypad_axis (unsigned port_num, uint32_t joyaxis)
 
static int16_t ctr_joypad_fix_range (int16_t val)
 
static void ctr_joypad_poll (void)
 
static bool ctr_joypad_query_pad (unsigned pad)
 
static void ctr_joypad_destroy (void)
 

Variables

static uint32_t pad_state
 
static int16_t analog_state [1][2][2]
 
uint64_t lifecycle_state
 
input_device_driver_t ctr_joypad
 

Macro Definition Documentation

◆ MAX_PADS

#define MAX_PADS   1

Function Documentation

◆ ctr_joypad_autodetect_add()

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

◆ ctr_joypad_axis()

static int16_t ctr_joypad_axis ( unsigned  port_num,
uint32_t  joyaxis 
)
static

◆ ctr_joypad_button()

static bool ctr_joypad_button ( unsigned  port_num,
uint16_t  key 
)
static

◆ ctr_joypad_destroy()

static void ctr_joypad_destroy ( void  )
static

◆ ctr_joypad_fix_range()

static int16_t ctr_joypad_fix_range ( int16_t  val)
static
Here is the caller graph for this function:

◆ ctr_joypad_get_buttons()

static void ctr_joypad_get_buttons ( unsigned  port_num,
input_bits_t state 
)
static

◆ ctr_joypad_init()

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

◆ ctr_joypad_name()

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

◆ ctr_joypad_poll()

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

◆ ctr_joypad_query_pad()

static bool ctr_joypad_query_pad ( unsigned  pad)
static

Variable Documentation

◆ analog_state

int16_t analog_state[1][2][2]
static

◆ ctr_joypad

Initial value:
= {
"ctr",
}
static bool ctr_joypad_init(void *data)
Definition: ctr_joypad.c:56
static int16_t ctr_joypad_axis(unsigned port_num, uint32_t joyaxis)
Definition: ctr_joypad.c:83
static bool ctr_joypad_button(unsigned port_num, uint16_t key)
Definition: ctr_joypad.c:65
static bool ctr_joypad_query_pad(unsigned pad)
Definition: ctr_joypad.c:182
static void ctr_joypad_destroy(void)
Definition: ctr_joypad.c:189
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static const char * ctr_joypad_name(unsigned pad)
Definition: ctr_joypad.c:38
static void ctr_joypad_get_buttons(unsigned port_num, input_bits_t *state)
Definition: ctr_joypad.c:73
static void ctr_joypad_poll(void)
Definition: ctr_joypad.c:134

◆ lifecycle_state

uint64_t lifecycle_state

◆ pad_state

uint32_t pad_state
static