summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyzz2016-08-14 12:11:16 +0200
committerGitHub2016-08-14 12:11:16 +0200
commit513c827546093bca9901d25fa30b75c6b0244600 (patch)
treefa9d027198c1812845d3eb167901e5c1c64017f2
parentMerge pull request #18 from endrift/actuator (diff)
parentAdd sceCtrlSetLightBar (diff)
downloadvds-libraries-513c827546093bca9901d25fa30b75c6b0244600.tar.gz
Merge pull request #19 from endrift/lightbar
Add sceCtrlSetLightBar
-rw-r--r--include/user/ctrl.h12
-rw-r--r--nids/360/SceCtrl.yml1
2 files changed, 13 insertions, 0 deletions
diff --git a/include/user/ctrl.h b/include/user/ctrl.h
index a05f9f6..c745714 100644
--- a/include/user/ctrl.h
+++ b/include/user/ctrl.h
@@ -167,6 +167,18 @@ int sceCtrlClearRapidFire(int port, int idx);
*/
int sceCtrlSetActuator(int port, const SceCtrlActuator* pState);
+/**
+ * Control the light bar on paired controllers.
+ *
+ * @param[in] port - use 1 for the first paired controller, etc.
+ * @param[in] r - red intensity
+ * @param[in] g - green intensity
+ * @param[in] b - blue intensity
+ *
+ * @return 0, <0 on error.
+ */
+int sceCtrlSetLightBar(int port, SceUInt8 r, SceUInt8 g, SceUInt8 b);
+
#ifdef __cplusplus
}
#endif
diff --git a/nids/360/SceCtrl.yml b/nids/360/SceCtrl.yml
index 97b762c..51e10bf 100644
--- a/nids/360/SceCtrl.yml
+++ b/nids/360/SceCtrl.yml
@@ -14,5 +14,6 @@ modules:
sceCtrlReadBufferPositive: 0x67E7AB83
sceCtrlSetActuator: 0xDBCAA0C9
sceCtrlSetButtonIntercept: 0x433D71F4
+ sceCtrlSetLightBar: 0xDA11D433
sceCtrlSetRapidFire: 0xE9CB69C8
sceCtrlSetSamplingMode: 0xA497B150