RetroArch
Classes | Macros | Functions | Variables
connect_ps3.c File Reference
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <boolean.h>
#include "joypad_connection.h"
#include "../input_defines.h"
#include "../common/hid/hid_device_driver.h"
Include dependency graph for connect_ps3.c:

Classes

struct  hidpad_ps3_data
 

Macros

#define DS3_ACTIVATION_REPORT_ID   0xf4
 
#define DS3_RUMBLE_REPORT_ID   0x01
 

Functions

static void hidpad_ps3_send_control (struct hidpad_ps3_data *device)
 
static voidhidpad_ps3_init (void *data, uint32_t slot, hid_driver_t *driver)
 
static void hidpad_ps3_deinit (void *data)
 
static void hidpad_ps3_get_buttons (void *data, input_bits_t *state)
 
static int16_t hidpad_ps3_get_axis (void *data, unsigned axis)
 
static void hidpad_ps3_packet_handler (void *data, uint8_t *packet, uint16_t size)
 
static void hidpad_ps3_set_rumble (void *data, enum retro_rumble_effect effect, uint16_t strength)
 
const char * hidpad_ps3_get_name (void *data)
 

Variables

pad_connection_interface_t pad_connection_ps3
 

Macro Definition Documentation

◆ DS3_ACTIVATION_REPORT_ID

#define DS3_ACTIVATION_REPORT_ID   0xf4

◆ DS3_RUMBLE_REPORT_ID

#define DS3_RUMBLE_REPORT_ID   0x01

Function Documentation

◆ hidpad_ps3_deinit()

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

◆ hidpad_ps3_get_axis()

static int16_t hidpad_ps3_get_axis ( void data,
unsigned  axis 
)
static

◆ hidpad_ps3_get_buttons()

static void hidpad_ps3_get_buttons ( void data,
input_bits_t state 
)
static

◆ hidpad_ps3_get_name()

const char* hidpad_ps3_get_name ( void data)
Here is the call graph for this function:

◆ hidpad_ps3_init()

static void* hidpad_ps3_init ( void data,
uint32_t  slot,
hid_driver_t driver 
)
static
Here is the call graph for this function:

◆ hidpad_ps3_packet_handler()

static void hidpad_ps3_packet_handler ( void data,
uint8_t packet,
uint16_t  size 
)
static
Here is the call graph for this function:

◆ hidpad_ps3_send_control()

static void hidpad_ps3_send_control ( struct hidpad_ps3_data device)
static
Here is the caller graph for this function:

◆ hidpad_ps3_set_rumble()

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

Variable Documentation

◆ pad_connection_ps3

pad_connection_interface_t pad_connection_ps3
Initial value:
= {
}
static int16_t hidpad_ps3_get_axis(void *data, unsigned axis)
Definition: connect_ps3.c:150
static void hidpad_ps3_set_rumble(void *data, enum retro_rumble_effect effect, uint16_t strength)
Definition: connect_ps3.c:211
static void hidpad_ps3_get_buttons(void *data, input_bits_t *state)
Definition: connect_ps3.c:134
static void hidpad_ps3_packet_handler(void *data, uint8_t *packet, uint16_t size)
Definition: connect_ps3.c:164
const char * hidpad_ps3_get_name(void *data)
Definition: connect_ps3.c:226
static void hidpad_ps3_deinit(void *data)
Definition: connect_ps3.c:126
static void * hidpad_ps3_init(void *data, uint32_t slot, hid_driver_t *driver)
Definition: connect_ps3.c:79