|
libnds
|
Slot-2 Rumble. More...
Functions | |
| bool | isRumbleInserted (void) |
| Check if a rumble device has been inserted. | |
| uint8_t | rumbleGetMaxRawStrength (void) |
| Get the maximum rumble strength. | |
| static void | rumbleInit (void) |
| Initialize the rumble device. | |
| bool | rumbleIsEdgeActivated (void) |
| Check if a rumble device is edge-activated. | |
| static void | rumbleTick (uint8_t rawStrength) |
| Emit a single, fast rumble tick. | |
| void | setRumble (uint8_t rawStrength) |
| Set the rumble device enable/disable pin. | |
Slot-2 Rumble.
| bool isRumbleInserted | ( | void | ) |
Check if a rumble device has been inserted.
| uint8_t rumbleGetMaxRawStrength | ( | void | ) |
Get the maximum rumble strength.
|
inlinestatic |
Initialize the rumble device.
| bool rumbleIsEdgeActivated | ( | void | ) |
Check if a rumble device is edge-activated.
An edge-activated rumble device triggers its actuator when calling setRumble(1) if setRumble(0) was called prior.
A non-edge-activated rumble device triggers its motor starting from when setRumble(1) was called, until setRumble(0) is called.
|
inlinestatic |
Emit a single, fast rumble tick.
| rawStrength | The raw rumble strength (rumbleGetMaxRawStrength()). |
| void setRumble | ( | uint8_t | rawStrength | ) |
Set the rumble device enable/disable pin.
Note that rumbleEnable() and rumbleDisable() are more user-friendly.
| rawStrength | The raw rumble strength (rumbleGetMaxRawStrength()). |