RetroArch
Macros | Functions | Variables
ps2_joypad.c File Reference
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
#include "../input_driver.h"
#include "libpad.h"
Include dependency graph for ps2_joypad.c:

Macros

#define PS2_MAX_PADS   1
 

Functions

static char padBuf [256] __attribute__ ((aligned(64)))
 
static const char * ps2_joypad_name (unsigned pad)
 
static bool ps2_joypad_init (void *data)
 
static bool ps2_joypad_button (unsigned port_num, uint16_t joykey)
 
static void ps2_joypad_get_buttons (unsigned port_num, input_bits_t *state)
 
static int16_t ps2_joypad_axis (unsigned port_num, uint32_t joyaxis)
 
static void ps2_joypad_poll (void)
 
static bool ps2_joypad_query_pad (unsigned pad)
 
static bool ps2_joypad_rumble (unsigned pad, enum retro_rumble_effect effect, uint16_t strength)
 
static void ps2_joypad_destroy (void)
 

Variables

static uint64_t pad_state [PS2_MAX_PADS]
 
input_device_driver_t ps2_joypad
 

Macro Definition Documentation

◆ PS2_MAX_PADS

#define PS2_MAX_PADS   1

Function Documentation

◆ __attribute__()

static char padBuf [256] __attribute__ ( (aligned(64))  )
static

◆ ps2_joypad_axis()

static int16_t ps2_joypad_axis ( unsigned  port_num,
uint32_t  joyaxis 
)
static

◆ ps2_joypad_button()

static bool ps2_joypad_button ( unsigned  port_num,
uint16_t  joykey 
)
static

◆ ps2_joypad_destroy()

static void ps2_joypad_destroy ( void  )
static

◆ ps2_joypad_get_buttons()

static void ps2_joypad_get_buttons ( unsigned  port_num,
input_bits_t state 
)
static

◆ ps2_joypad_init()

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

◆ ps2_joypad_name()

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

◆ ps2_joypad_poll()

static void ps2_joypad_poll ( void  )
static

◆ ps2_joypad_query_pad()

static bool ps2_joypad_query_pad ( unsigned  pad)
static

◆ ps2_joypad_rumble()

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

Variable Documentation

◆ pad_state

uint64_t pad_state[PS2_MAX_PADS]
static

◆ ps2_joypad

Initial value:
= {
"ps2",
}
static void ps2_joypad_poll(void)
Definition: ps2_joypad.c:98
static void ps2_joypad_destroy(void)
Definition: ps2_joypad.c:150
static const char * ps2_joypad_name(unsigned pad)
Definition: ps2_joypad.c:36
static bool ps2_joypad_rumble(unsigned pad, enum retro_rumble_effect effect, uint16_t strength)
Definition: ps2_joypad.c:143
static bool ps2_joypad_query_pad(unsigned pad)
Definition: ps2_joypad.c:138
static bool ps2_joypad_init(void *data)
Definition: ps2_joypad.c:41
static bool ps2_joypad_button(unsigned port_num, uint16_t joykey)
Definition: ps2_joypad.c:80
static int16_t ps2_joypad_axis(unsigned port_num, uint32_t joyaxis)
Definition: ps2_joypad.c:93
static void ps2_joypad_get_buttons(unsigned port_num, input_bits_t *state)
Definition: ps2_joypad.c:88