From be1e21fe701083c4eb3b9a0e4b87ca6271dd7ac6 Mon Sep 17 00:00:00 2001 From: "Daniel K. O. (dkosmari)" Date: Mon, 4 May 2026 20:04:27 -0300 Subject: [PATCH] More snake_case fix, moved wpad_im functions to the bottom. --- include/padscore/kpad.h | 4 ++-- include/padscore/wpad.h | 47 +++++++++++++++++++++-------------------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/include/padscore/kpad.h b/include/padscore/kpad.h index f973a6ae..c9169bee 100644 --- a/include/padscore/kpad.h +++ b/include/padscore/kpad.h @@ -147,8 +147,8 @@ struct KPADRect KPADVec2D topLeft; KPADVec2D bottomRight; }; -WUT_CHECK_OFFSET(KPADRect, 0x00, top_left); -WUT_CHECK_OFFSET(KPADRect, 0x08, bottom_right); +WUT_CHECK_OFFSET(KPADRect, 0x00, topLeft); +WUT_CHECK_OFFSET(KPADRect, 0x08, bottomRight); WUT_CHECK_SIZE(KPADRect, 0x10); //! A structure containing the Wii Remote data. diff --git a/include/padscore/wpad.h b/include/padscore/wpad.h index 47539fdd..d8aea824 100644 --- a/include/padscore/wpad.h +++ b/include/padscore/wpad.h @@ -1519,27 +1519,6 @@ WPADControlBLC(WPADChan channel, WPADBalanceBoardCmd command, WPADCallback callback); -/** - * Called by `WPADInit()`. - */ -void -wpad_im_setup(void); - -void -wpad_im_state_active(WPADChan chan); - -void -wpad_im_state_home(uint32_t type, uint32_t unknown); - -void -wpad_im_state_inactive(WPADChan chan); - -void -wpad_im_state_power(void); - -void -wpad_im_teardown(void); - BOOL WPADAttachDummyExtension(WPADChan chan, WPADExtensionType type); @@ -1582,7 +1561,8 @@ void WPADDisableBluetooth(void); void -WPADEnableSensorBar(BOOL enable); +WPADEnableSensorBar(BOOL enable) + WUT_DEPRECATED("Use WPADSetSensorBar() instead."); BOOL WPADGetAcceptConnection(void); @@ -1620,6 +1600,7 @@ WPADGetDpdCornerPoints(WPADChan chan, uint8_t WPADGetDpdSensitivity(void); +//! Thisis a stub, it does nothing. WPADError WPADGetMPCalibration(void); @@ -1739,7 +1720,8 @@ WPADRecalibrate(WPADChan chan); void WPADRegisterAllocator(const void *allocFunc, - const void *freeFunc); + const void *freeFunc) + WUT_DEPRECATED("This function is not used anymore."); void WPADRegisterBLCWorkarea(void); @@ -1839,6 +1821,25 @@ WPADStartClearDevice(void); BOOL WPADStartFastSyncDevice(void); +//! Called by `WPADInit()`. +void +wpad_im_setup(void); + +void +wpad_im_state_active(WPADChan chan); + +void +wpad_im_state_home(uint32_t type, uint32_t unknown); + +void +wpad_im_state_inactive(WPADChan chan); + +void +wpad_im_state_power(void); + +void +wpad_im_teardown(void); + uint16_t WUDGetFirmwareVersion(void);