rumble_init.h (1160B)
1 #ifndef RUMBLE_INIT_H 2 #define RUMBLE_INIT_H 3 4 #include "config.h" 5 6 #if ENABLE_RUMBLE 7 8 struct RumbleData { 9 u8 unk00; 10 u8 unk01; 11 s16 unk02; 12 s16 unk04; 13 }; 14 15 struct StructSH8031D9B0 { 16 s16 unk00; 17 s16 unk02; 18 s16 unk04; 19 s16 unk06; 20 s16 unk08; 21 s16 unk0A; 22 s16 unk0C; 23 s16 unk0E; 24 }; 25 26 extern OSThread gRumblePakThread; 27 28 extern OSPfs gRumblePakPfs; 29 30 extern OSMesg gRumblePakSchedulerMesgBuf; 31 extern OSMesgQueue gRumblePakSchedulerMesgQueue; 32 extern OSMesg gRumbleThreadVIMesgBuf; 33 extern OSMesgQueue gRumbleThreadVIMesgQueue; 34 35 extern struct RumbleData gRumbleDataQueue[3]; 36 extern struct StructSH8031D9B0 gCurrRumbleSettings; 37 38 extern s32 gRumblePakTimer; 39 40 void init_rumble_pak_scheduler_queue(void); 41 void block_until_rumble_pak_free(void); 42 void release_rumble_pak_control(void); 43 void queue_rumble_data(s16 a0, s16 a1); 44 void func_sh_8024C89C(s16 a0); 45 u8 is_rumble_finished_and_queue_empty(void); 46 void reset_rumble_timers(void); 47 void reset_rumble_timers_2(s32 a0); 48 void func_sh_8024CA04(void); 49 void cancel_rumble(void); 50 void create_thread_6(void); 51 void rumble_thread_update_vi(void); 52 53 #endif // ENABLE_RUMBLE 54 55 #endif // RUMBLE_INIT_H