33#ifndef __DC_MAPLE_PURUPURU_H 
   34#define __DC_MAPLE_PURUPURU_H 
   55typedef struct purupuru_effect  {
 
 
   81#define PURUPURU_EFFECT2_UINTENSITY(x) (x << 4) 
   91#define PURUPURU_EFFECT2_LINTENSITY(x) (x) 
   97#define PURUPURU_EFFECT2_DECAY         (8 << 4) 
  105#define PURUPURU_EFFECT2_PULSE         (8) 
  116#define PURUPURU_EFFECT1_INTENSITY(x)  (x << 4) 
  127#define PURUPURU_EFFECT1_PULSE         (8 << 4) 
  133#define PURUPURU_EFFECT1_POWERSAVE     (15) 
  145#define PURUPURU_SPECIAL_MOTOR1        (1 << 4) 
  153#define PURUPURU_SPECIAL_MOTOR2        (1 << 7) 
  159#define PURUPURU_SPECIAL_PULSE         (1) 
  190void purupuru_init(
void);
 
  191void purupuru_shutdown(
void);
 
int purupuru_rumble(maple_device_t *dev, purupuru_effect_t *effect)
Send an effect to a jump pack.
int purupuru_rumble_raw(maple_device_t *dev, uint32 effect)
Send a raw effect to a jump pack.
unsigned long uint32
32-bit unsigned integer
Definition types.h:33
unsigned char uint8
8-bit unsigned integer
Definition types.h:35
Maple Bus driver interface.
One maple device.
Definition maple.h:271
Effect generation structure.
Definition purupuru.h:55
uint8 duration
The duration of the effect.
Definition purupuru.h:57
uint8 effect2
2nd effect field.
Definition purupuru.h:60
uint8 effect1
1st effect field.
Definition purupuru.h:63
uint8 special
Special effects field.
Definition purupuru.h:66