RetroArch
Macros | Functions | Variables
psp_joypad.c File Reference
#include <stdint.h>
#include <string.h>
#include "../input_driver.h"
#include "../../tasks/tasks_internal.h"
#include "../../configuration.h"
#include "../../defines/psp_defines.h"
Include dependency graph for psp_joypad.c:

Macros

#define PSP_MAX_PADS   1
 

Functions

static const char * psp_joypad_name (unsigned pad)
 
static bool psp_joypad_init (void *data)
 
static bool psp_joypad_button (unsigned port_num, uint16_t key)
 
static void psp_joypad_get_buttons (unsigned port_num, input_bits_t *state)
 
static int16_t psp_joypad_axis (unsigned port_num, uint32_t joyaxis)
 
static void psp_joypad_poll (void)
 
static bool psp_joypad_query_pad (unsigned pad)
 
static bool psp_joypad_rumble (unsigned pad, enum retro_rumble_effect effect, uint16_t strength)
 
static void psp_joypad_destroy (void)
 

Variables

static uint64_t pad_state [PSP_MAX_PADS]
 
static int16_t analog_state [PSP_MAX_PADS][2][2]
 
uint64_t lifecycle_state
 
input_device_driver_t psp_joypad
 

Macro Definition Documentation

◆ PSP_MAX_PADS

#define PSP_MAX_PADS   1

Function Documentation

◆ psp_joypad_axis()

static int16_t psp_joypad_axis ( unsigned  port_num,
uint32_t  joyaxis 
)
static

◆ psp_joypad_button()

static bool psp_joypad_button ( unsigned  port_num,
uint16_t  key 
)
static

◆ psp_joypad_destroy()

static void psp_joypad_destroy ( void  )
static

◆ psp_joypad_get_buttons()

static void psp_joypad_get_buttons ( unsigned  port_num,
input_bits_t state 
)
static

◆ psp_joypad_init()

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

◆ psp_joypad_name()

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

◆ psp_joypad_poll()

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

◆ psp_joypad_query_pad()

static bool psp_joypad_query_pad ( unsigned  pad)
static

◆ psp_joypad_rumble()

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

Variable Documentation

◆ analog_state

int16_t analog_state[PSP_MAX_PADS][2][2]
static

◆ lifecycle_state

uint64_t lifecycle_state

◆ pad_state

uint64_t pad_state[PSP_MAX_PADS]
static

◆ psp_joypad

Initial value:
= {
"psp",
}
static void psp_joypad_destroy(void)
Definition: psp_joypad.c:379
static const char * psp_joypad_name(unsigned pad)
Definition: psp_joypad.c:64
static bool psp_joypad_init(void *data)
Definition: psp_joypad.c:84
static bool psp_joypad_button(unsigned port_num, uint16_t key)
Definition: psp_joypad.c:119
static int16_t psp_joypad_axis(unsigned port_num, uint32_t joyaxis)
Definition: psp_joypad.c:137
static bool psp_joypad_rumble(unsigned pad, enum retro_rumble_effect effect, uint16_t strength)
Definition: psp_joypad.c:331
static void psp_joypad_poll(void)
Definition: psp_joypad.c:182
static void psp_joypad_get_buttons(unsigned port_num, input_bits_t *state)
Definition: psp_joypad.c:127
static bool psp_joypad_query_pad(unsigned pad)
Definition: psp_joypad.c:326