|
coastline 0.0.4
|
The Rumble Paks of the first two controllers. More...

Go to the source code of this file.
Classes | |
| struct | RumbleProbeState |
| The adjacent race-exit flag and Rumble Pak probe timer. More... | |
Macros | |
| #define | RUMBLE_CHANNELS 2 |
| The controllers whose Rumble Paks the game drives. | |
Functions | |
| void | UpdateRumblePaks (s32 unused) |
| Pulse the motors of the Rumble Paks during a race, stop them outside one, and probe for Paks every 64 calls. | |
| void | PrepareRumblePaks (void) |
| Called before the Rumble Paks are first probed. | |
Variables | |
| OSPfs | g_aContPfs [MAXCONTROLLERS] |
| The Pak handle of each controller. | |
| OSMesgQueue | g_SiMesgQueue |
| The queue of SI events. | |
| u8 | g_abRumblePakPresent [MAXCONTROLLERS] |
| Whether each controller holds a Rumble Pak. | |
| s16 | g_wSerialInterfaceIdle |
| Whether the serial interface is free of Controller Pak transfers, so the motors may run. | |
| s16 | g_awRumbleActive [RUMBLE_CHANNELS] |
| Whether each motor is pulsing. | |
| s16 | g_awRumbleMotorOn [RUMBLE_CHANNELS] |
| Whether each motor is in the on half of its pulse. | |
| s16 | g_awRumbleOnFrames [RUMBLE_CHANNELS] |
| The frames each pulse stays on. | |
| s16 | g_awRumbleOffFrames [RUMBLE_CHANNELS] |
| The frames each pulse stays off. | |
| s16 | g_awRumbleCounter [RUMBLE_CHANNELS] |
| The frames left in the current half of each pulse. | |
| s16 | g_awRumbleFramesLeft [RUMBLE_CHANNELS] |
| The frames left before each rumble ends. | |
| RumbleProbeState | g_RumbleProbeState |
| A shared view of the race-exit flag and probe timer in the original data layout. | |
| u32 | g_dwRumbleProbeTimer |
| The frames until the next probe for Rumble Paks, modulo 64. | |
The Rumble Paks of the first two controllers.
| #define RUMBLE_CHANNELS 2 |
The controllers whose Rumble Paks the game drives.
| void UpdateRumblePaks | ( | s32 | unused | ) |
Pulse the motors of the Rumble Paks during a race, stop them outside one, and probe for Paks every 64 calls.
The audio thread calls it once per buffer.
| unused | The routine never reads it. Its caller passes 0. |
| void PrepareRumblePaks | ( | void | ) |
Called before the Rumble Paks are first probed.
It does nothing in the release.
|
extern |
The Pak handle of each controller.
|
extern |
The queue of SI events.
|
extern |
Whether each controller holds a Rumble Pak.
The start of the system checks all four; the rumble reads the first RUMBLE_CHANNELS.
|
extern |
Whether the serial interface is free of Controller Pak transfers, so the motors may run.
|
extern |
Whether each motor is pulsing.
|
extern |
Whether each motor is in the on half of its pulse.
|
extern |
The frames each pulse stays on.
|
extern |
The frames each pulse stays off.
|
extern |
The frames left in the current half of each pulse.
|
extern |
The frames left before each rumble ends.
|
extern |
A shared view of the race-exit flag and probe timer in the original data layout.
|
extern |
The frames until the next probe for Rumble Paks, modulo 64.