|
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 { | ||
| }; | ||
| Deprecated old structure which has been inverted now to union with raw. | ||
| 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 |
Deprecated old structure which has been inverted now to union with raw.
| struct { ... } purupuru_effect_t |
| uint32_t purupuru_effect_t::bpow |
Backward direction (- direction) intensity setting bits.
0 stops vibration.
| bool purupuru_effect_t::cont |
Continuous Vibration.
When set vibration will continue until stopped
| bool purupuru_effect_t::conv |
Convergent vibration.
The rumble will get weaker until it stops.
| bool purupuru_effect_t::div |
Divergent vibration.
The rumble will get stronger until it stops.
| uint32_t purupuru_effect_t::fpow |
Forward direction (+ direction) intensity setting bits.
0 stops vibration.
| uint8_t purupuru_effect_t::freq |
Vibration frequency.
for most purupuru 4-59.
| uint8_t purupuru_effect_t::inc |
Vibration inclination period.
| uint32_t purupuru_effect_t::motor |
Motor number.
0 will cause an error. 1 is the typical setting.
| uint32_t purupuru_effect_t::raw |
Access the raw 32-bit value to be sent to the puru.
| uint32_t purupuru_effect_t::res |
Reserved.
Always 0s