RetroArch
Classes | Macros | Typedefs | Functions | Variables
switch_input.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <boolean.h>
#include <libretro.h>
#include <retro_miscellaneous.h>
#include "../input_driver.h"
Include dependency graph for switch_input.c:

Classes

struct  switch_input
 

Macros

#define MAX_PADS   10
 

Typedefs

typedef struct switch_input switch_input_t
 

Functions

static void switch_input_poll (void *data)
 
static int16_t switch_input_state (void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
 
static void switch_input_free_input (void *data)
 
static voidswitch_input_init (const char *joypad_driver)
 
static uint64_t switch_input_get_capabilities (void *data)
 
static const input_device_driver_tswitch_input_get_joypad_driver (void *data)
 
static void switch_input_grab_mouse (void *data, bool state)
 
static bool switch_input_set_rumble (void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
 
static bool switch_input_keyboard_mapping_is_blocked (void *data)
 
static void switch_input_keyboard_mapping_set_block (void *data, bool value)
 

Variables

input_driver_t input_switch
 

Macro Definition Documentation

◆ MAX_PADS

#define MAX_PADS   10

Typedef Documentation

◆ switch_input_t

typedef struct switch_input switch_input_t

Function Documentation

◆ switch_input_free_input()

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

◆ switch_input_get_capabilities()

static uint64_t switch_input_get_capabilities ( void data)
static
Here is the call graph for this function:

◆ switch_input_get_joypad_driver()

static const input_device_driver_t* switch_input_get_joypad_driver ( void data)
static

◆ switch_input_grab_mouse()

static void switch_input_grab_mouse ( void data,
bool  state 
)
static
Here is the call graph for this function:

◆ switch_input_init()

static void* switch_input_init ( const char *  joypad_driver)
static
Here is the call graph for this function:

◆ switch_input_keyboard_mapping_is_blocked()

static bool switch_input_keyboard_mapping_is_blocked ( void data)
static

◆ switch_input_keyboard_mapping_set_block()

static void switch_input_keyboard_mapping_set_block ( void data,
bool  value 
)
static

◆ switch_input_poll()

static void switch_input_poll ( void data)
static

◆ switch_input_set_rumble()

static bool switch_input_set_rumble ( void data,
unsigned  port,
enum retro_rumble_effect  effect,
uint16_t  strength 
)
static
Here is the call graph for this function:

◆ switch_input_state()

static int16_t switch_input_state ( void data,
rarch_joypad_info_t  joypad_info,
const struct retro_keybind **  binds,
unsigned  port,
unsigned  device,
unsigned  idx,
unsigned  id 
)
static
Here is the call graph for this function:

Variable Documentation

◆ input_switch

input_driver_t input_switch
Initial value:
= {
"switch",
}
static void switch_input_free_input(void *data)
Definition: switch_input.c:132
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void switch_input_grab_mouse(void *data, bool state)
Definition: switch_input.c:191
static uint64_t switch_input_get_capabilities(void *data)
Definition: switch_input.c:170
static bool switch_input_set_rumble(void *data, unsigned port, enum retro_rumble_effect effect, uint16_t strength)
Definition: switch_input.c:197
static int16_t switch_input_state(void *data, rarch_joypad_info_t joypad_info, const struct retro_keybind **binds, unsigned port, unsigned device, unsigned idx, unsigned id)
Definition: switch_input.c:100
static void switch_input_keyboard_mapping_set_block(void *data, bool value)
Definition: switch_input.c:216
static bool switch_input_keyboard_mapping_is_blocked(void *data)
Definition: switch_input.c:208
static void * switch_input_init(const char *joypad_driver)
Definition: switch_input.c:146
static const input_device_driver_t * switch_input_get_joypad_driver(void *data)
Definition: switch_input.c:183
static void switch_input_poll(void *data)
Definition: switch_input.c:44