KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Rumble Pack

Maple driver for vibration pack peripherals More...

Files

file  purupuru.h
 Definitions for using the Puru Puru (Jump) Pack.
 

Data Structures

union  purupuru_effect_t
 Effect generation structure. More...
 

Functions

static uint32_t ("Please see purupuru_effect_t for modern equivalent.") PURUPURU_EFFECT2_UINTENSITY(uint8_t x)
 
static const uint8_t PURUPURU_EFFECT2_DECAY ("Please see purupuru_effect_t for modern equivalent.")
 
static const uint8_t PURUPURU_EFFECT2_PULSE ("Please see purupuru_effect_t for modern equivalent.")
 
static const uint8_t PURUPURU_EFFECT1_PULSE ("Please see purupuru_effect_t for modern equivalent.")
 
static const uint8_t PURUPURU_EFFECT1_POWERSAVE ("Please see purupuru_effect_t for modern equivalent.")
 
static const uint8_t PURUPURU_SPECIAL_MOTOR1 ("Please see purupuru_effect_t for modern equivalent.")
 
static const uint8_t PURUPURU_SPECIAL_MOTOR2 ("Please see purupuru_effect_t for modern equivalent.")
 
static const uint8_t PURUPURU_SPECIAL_PULSE ("Please see purupuru_effect_t for modern equivalent.")
 
int purupuru_rumble (maple_device_t *dev, const purupuru_effect_t *effect)
 Send an effect to a jump pack.
 
int purupuru_rumble_raw (maple_device_t *dev, uint32_t effect)
 Send a raw effect to a jump pack.
 

Detailed Description

Maple driver for vibration pack peripherals

Function Documentation

◆ PURUPURU_EFFECT1_POWERSAVE()

static const uint8_t PURUPURU_EFFECT1_POWERSAVE ( "Please see purupuru_effect_t for modern equivalent." )
static

◆ PURUPURU_EFFECT1_PULSE()

static const uint8_t PURUPURU_EFFECT1_PULSE ( "Please see purupuru_effect_t for modern equivalent." )
static

◆ PURUPURU_EFFECT2_DECAY()

static const uint8_t PURUPURU_EFFECT2_DECAY ( "Please see purupuru_effect_t for modern equivalent." )
static

◆ PURUPURU_EFFECT2_PULSE()

static const uint8_t PURUPURU_EFFECT2_PULSE ( "Please see purupuru_effect_t for modern equivalent." )
static

◆ purupuru_rumble()

int purupuru_rumble ( maple_device_t * dev,
const purupuru_effect_t * effect )

Send an effect to a jump pack.

This function sends an effect created with the purupuru_effect_t structure to a jump pack to be executed.

Parameters
devThe device to send the command to.
effectThe effect to send.
Return values
MAPLE_EOKOn success.
MAPLE_EAGAINIf the command couldn't be sent. Try again later.
MAPLE_EINVALIDThe command is not being sent due to invalid input.

◆ purupuru_rumble_raw()

int purupuru_rumble_raw ( maple_device_t * dev,
uint32_t effect )

Send a raw effect to a jump pack.

This function sends an effect to a jump pack to be executed. This is for if you want to bypass KOS-based error checking. This is not recommended except for testing purposes.

Parameters
devThe device to send the command to.
effectThe effect to send.
Return values
MAPLE_EOKOn success.
MAPLE_EAGAINIf the command couldn't be sent. Try again later.

◆ PURUPURU_SPECIAL_MOTOR1()

static const uint8_t PURUPURU_SPECIAL_MOTOR1 ( "Please see purupuru_effect_t for modern equivalent." )
static

◆ PURUPURU_SPECIAL_MOTOR2()

static const uint8_t PURUPURU_SPECIAL_MOTOR2 ( "Please see purupuru_effect_t for modern equivalent." )
static

◆ PURUPURU_SPECIAL_PULSE()

static const uint8_t PURUPURU_SPECIAL_PULSE ( "Please see purupuru_effect_t for modern equivalent." )
static

◆ uint32_t()