RetroArch
Macros | Functions | Variables
switch_joypad.c File Reference
#include <libtransistor/nx.h>
#include "../configuration.h"
#include "../input_driver.h"
#include "../../tasks/tasks_internal.h"
#include "../../retroarch.h"
#include "../../command.h"
#include "string.h"
Include dependency graph for switch_joypad.c:

Macros

#define MAX_PADS   10
 

Functions

static const char * switch_joypad_name (unsigned pad)
 
static void switch_joypad_autodetect_add (unsigned autoconf_pad)
 
static bool switch_joypad_init (void *data)
 
static bool switch_joypad_button (unsigned port_num, uint16_t key)
 
static void switch_joypad_get_buttons (unsigned port_num, input_bits_t *state)
 
static int16_t switch_joypad_axis (unsigned port_num, uint32_t joyaxis)
 
static bool switch_joypad_query_pad (unsigned pad)
 
static void switch_joypad_destroy (void)
 
static void switch_joypad_poll (void)
 

Variables

static uint16_t pad_state [MAX_PADS]
 
static int16_t analog_state [MAX_PADS][2][2]
 
uint64_t lifecycle_state
 
input_device_driver_t switch_joypad
 

Macro Definition Documentation

◆ MAX_PADS

#define MAX_PADS   10

Function Documentation

◆ switch_joypad_autodetect_add()

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

◆ switch_joypad_axis()

static int16_t switch_joypad_axis ( unsigned  port_num,
uint32_t  joyaxis 
)
static

◆ switch_joypad_button()

static bool switch_joypad_button ( unsigned  port_num,
uint16_t  key 
)
static
Here is the call graph for this function:

◆ switch_joypad_destroy()

static void switch_joypad_destroy ( void  )
static

◆ switch_joypad_get_buttons()

static void switch_joypad_get_buttons ( unsigned  port_num,
input_bits_t state 
)
static

◆ switch_joypad_init()

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

◆ switch_joypad_name()

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

◆ switch_joypad_poll()

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

◆ switch_joypad_query_pad()

static bool switch_joypad_query_pad ( unsigned  pad)
static

Variable Documentation

◆ analog_state

int16_t analog_state[MAX_PADS][2][2]
static

◆ lifecycle_state

uint64_t lifecycle_state

◆ pad_state

uint16_t pad_state[MAX_PADS]
static

◆ switch_joypad

input_device_driver_t switch_joypad
Initial value:
= {
NULL,
"switch"
}
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static int16_t switch_joypad_axis(unsigned port_num, uint32_t joyaxis)
Definition: switch_joypad.c:96
static void switch_joypad_destroy(void)
Definition: switch_joypad.c:148
static void switch_joypad_get_buttons(unsigned port_num, input_bits_t *state)
Definition: switch_joypad.c:84
static const char * switch_joypad_name(unsigned pad)
Definition: switch_joypad.c:39
static bool switch_joypad_query_pad(unsigned pad)
Definition: switch_joypad.c:143
static bool switch_joypad_init(void *data)
Definition: switch_joypad.c:56
static bool switch_joypad_button(unsigned port_num, uint16_t key)
Definition: switch_joypad.c:72
static void switch_joypad_poll(void)
Definition: switch_joypad.c:210