Add VPADBASESetSensorBarSetting and VPADBASEGetSensorBarSetting

If the second parameter (setting) is set to 1, the sensor bar from the Wii U GamePad will be enabled.
Any other values will disable it.

Thanks to QuarkTheAwesome for mentioning this on Twitter :)
This commit is contained in:
Crayon2000 2017-09-27 22:55:56 -04:00
parent 22f1f6b5c3
commit e23b86ad87
2 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,8 @@ EXPORT_DECL(s32, VPADSetLcdMode, s32 padnum, s32 lcdmode);
EXPORT_DECL(s32, VPADGetLcdMode, s32 padnum, s32 *lcdmode);
EXPORT_DECL(s32, VPADBASEGetMotorOnRemainingCount, s32 lcdmode);
EXPORT_DECL(s32, VPADBASESetMotorOnRemainingCount, s32 lcdmode, s32 counter);
EXPORT_DECL(void, VPADBASESetSensorBarSetting, s32 chan, s8 setting);
EXPORT_DECL(void, VPADBASEGetSensorBarSetting, s32 chan, s8 *setting);
void InitAcquireVPad(void)
{
@ -138,4 +140,6 @@ void InitVPadFunctionPointers(void)
OS_FIND_EXPORT(vpad_handle, VPADGetLcdMode);
OS_FIND_EXPORT(vpadbase_handle, VPADBASEGetMotorOnRemainingCount);
OS_FIND_EXPORT(vpadbase_handle, VPADBASESetMotorOnRemainingCount);
OS_FIND_EXPORT(vpadbase_handle, VPADBASESetSensorBarSetting);
OS_FIND_EXPORT(vpadbase_handle, VPADBASEGetSensorBarSetting);
}

View File

@ -190,6 +190,8 @@ extern s32 (* VPADSetLcdMode)(s32 padnum, s32 lcdmode);
extern s32 (* VPADGetLcdMode)(s32 padnum, s32 *lcdmode);
extern s32 (* VPADBASEGetMotorOnRemainingCount)(s32 lcdmode);
extern s32 (* VPADBASESetMotorOnRemainingCount)(s32 lcdmode, s32 counter);
extern void (* VPADBASESetSensorBarSetting)(s32 chan, s8 setting);
extern void (* VPADBASEGetSensorBarSetting)(s32 chan, s8 *setting);
#ifdef __cplusplus
}