update rumble on vi thread
This commit is contained in:
parent
51759611e1
commit
af3c4f4df7
|
@ -33,8 +33,6 @@ typedef enum {
|
|||
/* 2 */ VOICE_INIT_SUCCESS // voice initialized
|
||||
} VoiceInitStatus;
|
||||
|
||||
void recomp_update_rumble();
|
||||
|
||||
void PadMgr_HandleRetrace(void) {
|
||||
// Execute rumble callback
|
||||
if (sPadMgrInstance->rumbleRetraceCallback != NULL) {
|
||||
|
@ -62,8 +60,6 @@ void PadMgr_HandleRetrace(void) {
|
|||
PadMgr_UpdateRumble();
|
||||
--sPadMgrInstance->rumbleOnTimer;
|
||||
}
|
||||
|
||||
recomp_update_rumble();
|
||||
}
|
||||
|
||||
void poll_inputs(void) {
|
||||
|
|
|
@ -46,4 +46,3 @@ osContStartReadData_recomp = 0x8F000070;
|
|||
osContGetReadData_recomp = 0x8F000074;
|
||||
osContStartQuery_recomp = 0x8F000078;
|
||||
osContGetQuery_recomp = 0x8F00007C;
|
||||
recomp_update_rumble = 0x8F000080;
|
||||
|
|
|
@ -81,7 +81,3 @@ extern "C" void recomp_get_low_health_beeps_enabled(uint8_t* rdram, recomp_conte
|
|||
extern "C" void recomp_time_us(uint8_t* rdram, recomp_context* ctx) {
|
||||
_return(ctx, static_cast<u32>(std::chrono::duration_cast<std::chrono::microseconds>(ultramodern::time_since_start()).count()));
|
||||
}
|
||||
|
||||
extern "C" void recomp_update_rumble(uint8_t* rdram, recomp_context* ctx) {
|
||||
recomp::update_rumble();
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "rt64_layer.h"
|
||||
#include "recomp.h"
|
||||
#include "recomp_ui.h"
|
||||
#include "recomp_input.h"
|
||||
#include "rsp.h"
|
||||
|
||||
struct SpTaskAction {
|
||||
|
@ -169,6 +170,9 @@ void vi_thread_func() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO move recomp code out of ultramodern.
|
||||
recomp::update_rumble();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue