1#ifndef COASTLINE_RUMBLE_H
2#define COASTLINE_RUMBLE_H
18#define RUMBLE_CHANNELS 2
139#if TGR_PLATFORM == TGR_PLATFORM_N64
Public interface of the libultra operating system, as the game links it.
struct OSMesgQueue_s OSMesgQueue
A message queue: a ring of messages and the threads blocked sending or receiving.
The controllers and the Controller Pak file system.
#define MAXCONTROLLERS
The ports of the console.
Definition os_cont.h:17
s16 g_awRumbleMotorOn[RUMBLE_CHANNELS]
Whether each motor is in the on half of its pulse.
s16 g_awRumbleCounter[RUMBLE_CHANNELS]
The frames left in the current half of each pulse.
RumbleProbeState g_RumbleProbeState
A shared view of the race-exit flag and probe timer in the original data layout.
s16 g_awRumbleOffFrames[RUMBLE_CHANNELS]
The frames each pulse stays off.
s16 g_wSerialInterfaceIdle
Whether the serial interface is free of Controller Pak transfers, so the motors may run.
s16 g_awRumbleOnFrames[RUMBLE_CHANNELS]
The frames each pulse stays on.
u32 g_dwRumbleProbeTimer
The frames until the next probe for Rumble Paks, modulo 64.
void UpdateRumblePaks(s32 unused)
Pulse the motors of the Rumble Paks during a race, stop them outside one, and probe for Paks every 64...
OSMesgQueue g_SiMesgQueue
The queue of SI events.
u8 g_abRumblePakPresent[MAXCONTROLLERS]
Whether each controller holds a Rumble Pak.
void PrepareRumblePaks(void)
Called before the Rumble Paks are first probed.
#define RUMBLE_CHANNELS
The controllers whose Rumble Paks the game drives.
Definition rumble.h:18
OSPfs g_aContPfs[MAXCONTROLLERS]
The Pak handle of each controller.
s16 g_awRumbleFramesLeft[RUMBLE_CHANNELS]
The frames left before each rumble ends.
s16 g_awRumbleActive[RUMBLE_CHANNELS]
Whether each motor is pulsing.
An open Controller Pak.
Definition os_cont.h:115
The adjacent race-exit flag and Rumble Pak probe timer.
Definition rumble.h:141
s16 raceScreenLoopExited
Whether the race screen loop has exited.
Definition rumble.h:143
u32 probeTimer
The probe counter, following the flag's implicit alignment padding.
Definition rumble.h:145
Integer and floating-point types of libultra.
unsigned int u32
Definition ultratypes.h:20
short s16
Definition ultratypes.h:24
int s32
Definition ultratypes.h:25
unsigned char u8
Definition ultratypes.h:18