RetroArch
Functions
joypad_connection.c File Reference
#include <stdlib.h>
#include <string.h>
#include <string/stdstring.h>
#include "../input_driver.h"
#include "../../verbosity.h"
#include "joypad_connection.h"
Include dependency graph for joypad_connection.c:

Functions

static bool joypad_is_end_of_list (joypad_connection_t *pad)
 
int pad_connection_find_vacant_pad (joypad_connection_t *joyconn)
 
static void set_end_of_list (joypad_connection_t *list, unsigned end)
 
joypad_connection_tpad_connection_init (unsigned pads)
 
int32_t pad_connection_pad_init (joypad_connection_t *joyconn, const char *name, uint16_t vid, uint16_t pid, void *data, hid_driver_t *driver)
 
void pad_connection_pad_deinit (joypad_connection_t *joyconn, uint32_t pad)
 
void pad_connection_packet (joypad_connection_t *joyconn, uint32_t pad, uint8_t *data, uint32_t length)
 
void pad_connection_get_buttons (joypad_connection_t *joyconn, unsigned pad, input_bits_t *state)
 
int16_t pad_connection_get_axis (joypad_connection_t *joyconn, unsigned idx, unsigned i)
 
bool pad_connection_has_interface (joypad_connection_t *joyconn, unsigned pad)
 
void pad_connection_destroy (joypad_connection_t *joyconn)
 
bool pad_connection_rumble (joypad_connection_t *joyconn, unsigned pad, enum retro_rumble_effect effect, uint16_t strength)
 
const char * pad_connection_get_name (joypad_connection_t *joyconn, unsigned pad)
 

Function Documentation

◆ joypad_is_end_of_list()

static bool joypad_is_end_of_list ( joypad_connection_t pad)
static
Here is the caller graph for this function:

◆ pad_connection_destroy()

void pad_connection_destroy ( joypad_connection_t joyconn)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pad_connection_find_vacant_pad()

int pad_connection_find_vacant_pad ( joypad_connection_t joyconn)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pad_connection_get_axis()

int16_t pad_connection_get_axis ( joypad_connection_t joyconn,
unsigned  idx,
unsigned  i 
)
Here is the caller graph for this function:

◆ pad_connection_get_buttons()

void pad_connection_get_buttons ( joypad_connection_t joyconn,
unsigned  pad,
input_bits_t state 
)
Here is the caller graph for this function:

◆ pad_connection_get_name()

const char* pad_connection_get_name ( joypad_connection_t joyconn,
unsigned  pad 
)
Here is the caller graph for this function:

◆ pad_connection_has_interface()

bool pad_connection_has_interface ( joypad_connection_t joyconn,
unsigned  pad 
)
Here is the caller graph for this function:

◆ pad_connection_init()

joypad_connection_t* pad_connection_init ( unsigned  pads)

Since the pad_connection_destroy() call needs to iterate through this list, we allocate pads+1 entries and use the extra spot to store a marker.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pad_connection_packet()

void pad_connection_packet ( joypad_connection_t joyconn,
uint32_t  pad,
uint8_t data,
uint32_t  length 
)
Here is the caller graph for this function:

◆ pad_connection_pad_deinit()

void pad_connection_pad_deinit ( joypad_connection_t joyconn,
uint32_t  pad 
)
Here is the caller graph for this function:

◆ pad_connection_pad_init()

int32_t pad_connection_pad_init ( joypad_connection_t joyconn,
const char *  name,
uint16_t  vid,
uint16_t  pid,
void data,
hid_driver_t driver 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pad_connection_rumble()

bool pad_connection_rumble ( joypad_connection_t joyconn,
unsigned  pad,
enum retro_rumble_effect  effect,
uint16_t  strength 
)
Here is the caller graph for this function:

◆ set_end_of_list()

static void set_end_of_list ( joypad_connection_t list,
unsigned  end 
)
static
Here is the caller graph for this function: