Added blank SDL functions for rumble support.

This commit is contained in:
Zerocker 2020-05-24 23:49:49 +09:00
parent 4bbde37464
commit 37ff33b0a2
3 changed files with 28 additions and 1 deletions

View File

@ -3,7 +3,6 @@
#include "controller_recorded_tas.h"
#include "controller_keyboard.h"
#include "controller_sdl.h"
// Analog camera movement by Pathétique (github.com/vrmiguel), y0shin and Mors
@ -28,6 +27,18 @@ s32 osContInit(OSMesgQueue *mq, u8 *controllerBits, OSContStatus *status) {
return 0;
}
s32 osMotorStart(void *pfs) {
return controller_rumble_play(0.5, 1000);
}
s32 osMotorStop(void *pfs) {
return controller_rumble_stop();
}
u32 osMotorInit(OSMesgQueue *mq, void *pfs, s32 port) {
return controller_rumble_init();
}
s32 osContStartReadData(OSMesgQueue *mesg) {
return 0;
}

View File

@ -217,6 +217,18 @@ static void controller_sdl_shutdown(void) {
init_ok = false;
}
s32 controller_rumble_init(void) {
return 0;
}
s32 controller_rumble_play(f32 strength, u32 length) {
return 0;
}
s32 controller_rumble_stop(void) {
return 0;
}
struct ControllerAPI controller_sdl = {
VK_BASE_SDL_GAMEPAD,
controller_sdl_init,

View File

@ -7,4 +7,8 @@
extern struct ControllerAPI controller_sdl;
s32 controller_rumble_init(void);
s32 controller_rumble_play(f32 strength, u32 length);
s32 controller_rumble_stop(void);
#endif