From 44177a3e5bee9583e0728c88ea800e8ce1833901 Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Tue, 29 Aug 2017 22:12:36 -0400 Subject: [PATCH] Fix linking problem with KPADReadEx The void* parameter from KPADRead was also changed to KPADData. --- padscore_functions.c | 4 +++- padscore_functions.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/padscore_functions.c b/padscore_functions.c index 8f774dc..2f8ed86 100644 --- a/padscore_functions.c +++ b/padscore_functions.c @@ -32,7 +32,8 @@ EXPORT_DECL(s32, WPADProbe, s32 chan, u32 * pad_type); EXPORT_DECL(s32, WPADSetDataFormat, s32 chan, s32 format); EXPORT_DECL(void, WPADEnableURCC, s32 enable); EXPORT_DECL(void, WPADRead, s32 chan, void * data); -EXPORT_DECL(s32, KPADRead, s32 chan, void * data, u32 size); +EXPORT_DECL(s32, KPADRead, s32 chan, KPADData * data, u32 size); +EXPORT_DECL(s32, KPADReadEx, s32 chan, KPADData * data, u32 size, s32 *error); EXPORT_DECL(void,WPADSetAutoSleepTime,u8 minute); EXPORT_DECL(void,WPADDisconnect,s32 chan); @@ -53,6 +54,7 @@ void InitPadScoreFunctionPointers(void) OS_FIND_EXPORT(padscore_handle, WPADEnableURCC); OS_FIND_EXPORT(padscore_handle, WPADRead); OS_FIND_EXPORT(padscore_handle, KPADRead); + OS_FIND_EXPORT(padscore_handle, KPADReadEx); OS_FIND_EXPORT(padscore_handle, WPADSetAutoSleepTime); OS_FIND_EXPORT(padscore_handle, WPADDisconnect); diff --git a/padscore_functions.h b/padscore_functions.h index f7f07dc..a9329f8 100644 --- a/padscore_functions.h +++ b/padscore_functions.h @@ -188,7 +188,7 @@ extern s32 (* WPADProbe)(s32 chan, u32 * pad_type); extern s32 (* WPADSetDataFormat)(s32 chan, s32 format); extern void (* WPADEnableURCC)(s32 enable); extern void (* WPADRead)(s32 chan, void * data); -extern s32 (* KPADRead)(s32 chan, void * data, u32 size); +extern s32 (* KPADRead)(s32 chan, KPADData * data, u32 size); extern s32 (* KPADReadEx)(s32 chan, KPADData * data, u32 size, s32 *error); extern void (*WPADSetAutoSleepTime)(u8 time); extern void (*WPADDisconnect)( s32 chan );