RetroArch
Functions | Variables
ps3_joypad.c File Reference
#include <stdint.h>
#include <retro_inline.h>
#include "../../tasks/tasks_internal.h"
Include dependency graph for ps3_joypad.c:

Functions

static INLINE int16_t convert_u8_to_s16 (uint8_t val)
 
static const char * ps3_joypad_name (unsigned pad)
 
static void ps3_joypad_autodetect_add (unsigned autoconf_pad)
 
static bool ps3_joypad_init (void *data)
 
static bool ps3_joypad_button (unsigned port_num, uint16_t joykey)
 
static void ps3_joypad_get_buttons (unsigned port_num, input_bits_t *state)
 
static int16_t ps3_joypad_axis (unsigned port_num, uint32_t joyaxis)
 
static void ps3_joypad_poll (void)
 
static bool ps3_joypad_query_pad (unsigned pad)
 
static bool ps3_joypad_rumble (unsigned pad, enum retro_rumble_effect effect, uint16_t strength)
 
static void ps3_joypad_destroy (void)
 

Variables

static uint64_t pad_state [MAX_PADS]
 
static int16_t analog_state [MAX_PADS][2][2]
 
static uint64_t pads_connected [MAX_PADS]
 
input_device_driver_t ps3_joypad
 

Function Documentation

◆ convert_u8_to_s16()

static INLINE int16_t convert_u8_to_s16 ( uint8_t  val)
static
Here is the caller graph for this function:

◆ ps3_joypad_autodetect_add()

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

◆ ps3_joypad_axis()

static int16_t ps3_joypad_axis ( unsigned  port_num,
uint32_t  joyaxis 
)
static

◆ ps3_joypad_button()

static bool ps3_joypad_button ( unsigned  port_num,
uint16_t  joykey 
)
static

◆ ps3_joypad_destroy()

static void ps3_joypad_destroy ( void  )
static

◆ ps3_joypad_get_buttons()

static void ps3_joypad_get_buttons ( unsigned  port_num,
input_bits_t state 
)
static

◆ ps3_joypad_init()

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

◆ ps3_joypad_name()

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

◆ ps3_joypad_poll()

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

◆ ps3_joypad_query_pad()

static bool ps3_joypad_query_pad ( unsigned  pad)
static

◆ ps3_joypad_rumble()

static bool ps3_joypad_rumble ( unsigned  pad,
enum retro_rumble_effect  effect,
uint16_t  strength 
)
static

Variable Documentation

◆ analog_state

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

◆ pad_state

uint64_t pad_state[MAX_PADS]
static

◆ pads_connected

uint64_t pads_connected[MAX_PADS]
static

◆ ps3_joypad

Initial value:
= {
"ps3",
}
static int16_t ps3_joypad_axis(unsigned port_num, uint32_t joyaxis)
Definition: ps3_joypad.c:81
static bool ps3_joypad_init(void *data)
Definition: ps3_joypad.c:54
static bool ps3_joypad_query_pad(unsigned pad)
Definition: ps3_joypad.c:235
static void ps3_joypad_destroy(void)
Definition: ps3_joypad.c:264
static bool ps3_joypad_rumble(unsigned pad, enum retro_rumble_effect effect, uint16_t strength)
Definition: ps3_joypad.c:240
static bool ps3_joypad_button(unsigned port_num, uint16_t joykey)
Definition: ps3_joypad.c:63
static const char * ps3_joypad_name(unsigned pad)
Definition: ps3_joypad.c:36
static void ps3_joypad_poll(void)
Definition: ps3_joypad.c:126
static void ps3_joypad_get_buttons(unsigned port_num, input_bits_t *state)
Definition: ps3_joypad.c:71