From 31338f0d490857a3f58e73f5ff7964261eb99750 Mon Sep 17 00:00:00 2001 From: "Mahmood(Thunder07)" Date: Thu, 4 Jan 2018 17:26:48 +0000 Subject: [PATCH] Add Pad Lightbar colour change support --- core/stub.mk | 2 +- include/sce/pad.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/stub.mk b/core/stub.mk index 8758468..3db8f89 100644 --- a/core/stub.mk +++ b/core/stub.mk @@ -18,7 +18,7 @@ $(eval $(call generateModule, libkernel, $(libKernels))) # all plain modules and symbols here $(eval $(call generateModule, libSceCamera, sceCameraAudioOpen sceCameraClose sceCameraCloseByHandle sceCameraGetAttribute sceCameraGetAutoExposureGain sceCameraGetAutoWhiteBalance sceCameraGetCalibrationData sceCameraGetConfig sceCameraGetContrast sceCameraGetDefectivePixelCancellation sceCameraGetDeviceInfo sceCameraGetExposureGain sceCameraGetFrameData sceCameraGetGamma sceCameraGetHue sceCameraGetLensCorrection sceCameraGetSaturation sceCameraGetSharpness sceCameraGetWhiteBalance sceCameraIsAttached sceCameraIsValidFrameData sceCameraOpen sceCameraOpenByModuleId sceCameraSetAttribute sceCameraSetAutoExposureGain sceCameraSetAutoWhiteBalance sceCameraSetCalibData sceCameraSetConfig sceCameraSetConfigInternal sceCameraSetContrast sceCameraSetDefectivePixelCancellation sceCameraSetExposureGain sceCameraSetGamma sceCameraSetHue sceCameraSetLensCorrection sceCameraSetSaturation sceCameraSetSharpness sceCameraSetWhiteBalance sceCameraStart sceCameraStartByHandle sceCameraStop sceCameraStopByHandle)) $(eval $(call generateModule, libSceNet, sceNetAccept sceNetBind sceNetConnect sceNetGetsockname sceNetGetsockopt sceNetHtonl sceNetHtonll sceNetHtons sceNetInetNtop sceNetInetPton sceNetListen sceNetNtohl sceNetNtohll sceNetNtohs sceNetRecv sceNetSend sceNetSetsockopt sceNetSocket sceNetSocketAbort sceNetSocketClose)) -$(eval $(call generateModule, libScePad, scePadClose scePadInit scePadOpen scePadRead scePadReadState)) +$(eval $(call generateModule, libScePad, scePadClose scePadInit scePadOpen scePadRead scePadReadState scePadSetLightBar scePadResetLightBar)) $(eval $(call generateModule, libSceSysmodule, sceSysmoduleIsLoaded sceSysmoduleLoadModule sceSysmoduleUnloadModule)) $(eval $(call generateModule, libSceUsbd, sceUsbdBulkTransfer sceUsbdCheckConnected sceUsbdClearHalt sceUsbdClose sceUsbdControlTransfer sceUsbdExit sceUsbdFreeConfigDescriptor sceUsbdFreeDeviceList sceUsbdGetActiveConfigDescriptor sceUsbdGetConfigDescriptor sceUsbdGetConfigDescriptorByValue sceUsbdGetDeviceDescriptor sceUsbdGetDeviceList sceUsbdInit sceUsbdInterruptTransfer sceUsbdOpen sceUsbdOpenDeviceWithVidPid sceUsbdResetDevice sceUsbdSetInterfaceAltSetting)) diff --git a/include/sce/pad.h b/include/sce/pad.h index 45b9070..685baf4 100644 --- a/include/sce/pad.h +++ b/include/sce/pad.h @@ -8,11 +8,12 @@ int scePadOpen(int userID, int, int, void *); int scePadClose(int handle); int scePadRead(int handle, void *data, int count); int scePadReadState(int handle, void *data); +int scePadSetLightBar(int handle, uint32_t* rgb); +int scePadResetLightBar(int handle); /* unreversed */ int64_t scePadResetOrientation(); int64_t scePadSetAngularVelocityDeadbandState(); -int64_t scePadSetLightBar(); int64_t scePadSetMotionSensorState(); int64_t scePadSetTiltCorrectionState(); int64_t scePadSetVibration();