Added blank SDL functions for rumble support.
This commit is contained in:
parent
4bbde37464
commit
37ff33b0a2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue