mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-11-17 10:19:27 +01:00
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:
parent
22f1f6b5c3
commit
e23b86ad87
@ -76,6 +76,8 @@ EXPORT_DECL(s32, VPADSetLcdMode, s32 padnum, s32 lcdmode);
|
|||||||
EXPORT_DECL(s32, VPADGetLcdMode, s32 padnum, s32 *lcdmode);
|
EXPORT_DECL(s32, VPADGetLcdMode, s32 padnum, s32 *lcdmode);
|
||||||
EXPORT_DECL(s32, VPADBASEGetMotorOnRemainingCount, s32 lcdmode);
|
EXPORT_DECL(s32, VPADBASEGetMotorOnRemainingCount, s32 lcdmode);
|
||||||
EXPORT_DECL(s32, VPADBASESetMotorOnRemainingCount, s32 lcdmode, s32 counter);
|
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)
|
void InitAcquireVPad(void)
|
||||||
{
|
{
|
||||||
@ -138,4 +140,6 @@ void InitVPadFunctionPointers(void)
|
|||||||
OS_FIND_EXPORT(vpad_handle, VPADGetLcdMode);
|
OS_FIND_EXPORT(vpad_handle, VPADGetLcdMode);
|
||||||
OS_FIND_EXPORT(vpadbase_handle, VPADBASEGetMotorOnRemainingCount);
|
OS_FIND_EXPORT(vpadbase_handle, VPADBASEGetMotorOnRemainingCount);
|
||||||
OS_FIND_EXPORT(vpadbase_handle, VPADBASESetMotorOnRemainingCount);
|
OS_FIND_EXPORT(vpadbase_handle, VPADBASESetMotorOnRemainingCount);
|
||||||
|
OS_FIND_EXPORT(vpadbase_handle, VPADBASESetSensorBarSetting);
|
||||||
|
OS_FIND_EXPORT(vpadbase_handle, VPADBASEGetSensorBarSetting);
|
||||||
}
|
}
|
||||||
|
@ -190,6 +190,8 @@ extern s32 (* VPADSetLcdMode)(s32 padnum, s32 lcdmode);
|
|||||||
extern s32 (* VPADGetLcdMode)(s32 padnum, s32 *lcdmode);
|
extern s32 (* VPADGetLcdMode)(s32 padnum, s32 *lcdmode);
|
||||||
extern s32 (* VPADBASEGetMotorOnRemainingCount)(s32 lcdmode);
|
extern s32 (* VPADBASEGetMotorOnRemainingCount)(s32 lcdmode);
|
||||||
extern s32 (* VPADBASESetMotorOnRemainingCount)(s32 lcdmode, s32 counter);
|
extern s32 (* VPADBASESetMotorOnRemainingCount)(s32 lcdmode, s32 counter);
|
||||||
|
extern void (* VPADBASESetSensorBarSetting)(s32 chan, s8 setting);
|
||||||
|
extern void (* VPADBASEGetSensorBarSetting)(s32 chan, s8 *setting);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user