summaryrefslogtreecommitdiff
path: root/include/user/ctrl.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/user/ctrl.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/user/ctrl.h b/include/user/ctrl.h
index dbd18cc..0064614 100644
--- a/include/user/ctrl.h
+++ b/include/user/ctrl.h
@@ -16,7 +16,7 @@ enum {
/** Enumeration for the digital controller buttons.
* L1/R1/L3/R3 only can bind using sceCtrlReadBufferPositiveExt2 */
-enum {
+enum SceCtrlPadButtons {
SCE_CTRL_SELECT = 0x000001, //!< Select button.
SCE_CTRL_L3 = 0x000002, //!< L3 button.
SCE_CTRL_R3 = 0x000004, //!< R3 button.
@@ -33,11 +33,13 @@ enum {
SCE_CTRL_CIRCLE = 0x002000, //!< Circle button.
SCE_CTRL_CROSS = 0x004000, //!< Cross button.
SCE_CTRL_SQUARE = 0x008000, //!< Square button.
- SCE_CTRL_INTERCEPTED = 0x010000 //!< Input not available because intercepted by another application
+ SCE_CTRL_INTERCEPTED = 0x010000, //!< Input not available because intercepted by another application
+ SCE_CTRL_VOLUP = 0x100000, //!< Volume up button.
+ SCE_CTRL_VOLDOWN = 0x200000 //!< Volume down button.
};
/** Enumeration for the controller types. */
-enum {
+enum SceCtrlExternalInputMode {
SCE_CTRL_TYPE_UNPAIRED = 0,
SCE_CTRL_TYPE_PHY = 1, //!< Physical controller for VITA
SCE_CTRL_TYPE_VIRT = 2, //!< Virtual controller for PSTV
@@ -46,7 +48,7 @@ enum {
};
/** Controller mode. */
-enum {
+enum SceCtrlPadInputMode {
/** Digitial buttons only. */
SCE_CTRL_MODE_DIGITAL = 0,
/** Digital buttons + Analog support. */
@@ -249,9 +251,9 @@ int sceCtrlGetBatteryInfo(int port, SceUInt8 *batt);
/**
* Sets intercept
- *
- * If true, allows the current thread to intercept controls. The use case
- * might be, for example, a game plugin that wishes to capture input without
+ *
+ * If true, allows the current thread to intercept controls. The use case
+ * might be, for example, a game plugin that wishes to capture input without
* having the input sent to the game thread.
* @param[in] intercept Boolean value
*