|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Effect generation structure. More...
#include <purupuru.h>
Data Fields | ||
| uint32_t | raw | |
| Access the raw 32-bit value to be sent to the puru. | ||
| struct { | ||
| bool cont: 1 | ||
| Continuous Vibration. More... | ||
| uint32_t res: 3 | ||
| Reserved. More... | ||
| uint32_t motor: 4 | ||
| Motor number. More... | ||
| uint32_t bpow: 3 | ||
| Backward direction (- direction) intensity setting bits. More... | ||
| bool div: 1 | ||
| Divergent vibration. More... | ||
| uint32_t fpow: 3 | ||
| Forward direction (+ direction) intensity setting bits. More... | ||
| bool conv: 1 | ||
| Convergent vibration. More... | ||
| uint8_t freq | ||
| Vibration frequency. More... | ||
| uint8_t inc | ||
| Vibration inclination period. More... | ||
| }; | ||
Effect generation structure.
This structure is used for convenience to send an effect to the jump pack. The members in the structure note general explanations of their use as well as some limitations and suggestions. There shouldn't be a need to use the raw accessor with the new fully specified members.
| struct { ... } purupuru_effect_t |
| uint32_t purupuru_effect_t::bpow |
Backward direction (- direction) intensity setting bits.
0 stops vibration.
Referenced by print_rumble_fields().
| bool purupuru_effect_t::cont |
Continuous Vibration.
When set vibration will continue until stopped
Referenced by print_rumble_fields().
| bool purupuru_effect_t::conv |
Convergent vibration.
The rumble will get weaker until it stops.
Referenced by print_rumble_fields().
| bool purupuru_effect_t::div |
Divergent vibration.
The rumble will get stronger until it stops.
Referenced by print_rumble_fields().
| uint32_t purupuru_effect_t::fpow |
Forward direction (+ direction) intensity setting bits.
0 stops vibration.
Referenced by print_rumble_fields().
| uint8_t purupuru_effect_t::freq |
| uint8_t purupuru_effect_t::inc |
Vibration inclination period.
Referenced by print_rumble_fields().
| uint32_t purupuru_effect_t::motor |
| uint32_t purupuru_effect_t::raw |
Access the raw 32-bit value to be sent to the puru.
Referenced by main().
| uint32_t purupuru_effect_t::res |
Reserved.
Always 0s