diff options
author | Reiko Asakura | 2020-09-14 20:49:31 -0400 |
---|---|---|
committer | Reiko Asakura | 2020-09-14 20:49:31 -0400 |
commit | b4fbb87694c8b0a9c04d4ca527488cdf90b1c8c3 (patch) | |
tree | 6fb79a7367c2665fc79a9943453b4b0657467439 | |
parent | Add SceProcEvent (#466) (diff) | |
download | vds-libraries-b4fbb87694c8b0a9c04d4ca527488cdf90b1c8c3.tar.gz |
Revert vitasdk commits
Revert "travis: Install libclang1-9 and libclang-cpp9 for doxygen"
This reverts commit 18133956d69a0f02feb42cc441c013bfd84b6388.
Revert "travis: Bump ubuntu version to 20.04"
This reverts commit 5dee9e2f731747cbeff8003c05373dcd51557bee.
Revert "travis: Bump up doxygen version to 1.8.20"
This reverts commit 29b1e2243f12ea7f1dccfa1d182d858fb27ea949.
Revert "Properly populated ScePowerCallbackType enum."
This reverts commit faf03c48bdd0c698f8c5cd14947821de8ea71f6b.
Revert "Added some prototypes for command lists and deferred contexts."
This reverts commit 77791c80439a341e0ac05a2eb8f52f483f304428.
-rw-r--r-- | include/user/power.h | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/include/user/power.h b/include/user/power.h index ed35bed..8148139 100644 --- a/include/user/power.h +++ b/include/user/power.h @@ -18,30 +18,24 @@ typedef enum ScePowerErrorCode { } ScePowerErrorCode; typedef enum ScePowerCallbackType { - /** indicates the unit is using battery as power source */ - SCE_POWER_CB_BATTERY_MODE = 0x00000000, + /** indicates the power button was pushed, putting the unit into suspend mode */ + SCE_POWER_CB_POWER_SWITCH = 0x80000000, + /** ? screen on after off ? **/ + SCE_POWER_CB_UNK_1 = 0x00600000, + /** ? screen off ? **/ + SCE_POWER_CB_UNK_2 = 0x00400000, + /** indicates the unit has finish resuming from suspend mode */ + SCE_POWER_CB_RESUME_COMPLETE = 0x00040000, + /** indicates the unit is resuming from suspend mode */ + SCE_POWER_CB_RESUMING = 0x00020000, + /** indicates the unit is suspending, seems to occur due to inactivity */ + SCE_POWER_CB_SUSPENDING = 0x00010000, + /** indicates the unit is plugged into an AC outlet */ + SCE_POWER_CB_AC_POWER = 0x00001000, /** indicates the battery is in low state */ - SCE_POWER_CB_LOW_BATTERY = 0x00000100, - /** indicates the unit is using an AC outlet as power source */ - SCE_POWER_CB_AC_POWER_MODE = 0x00001000, - /** indicates the unit has been shutdown **/ - SCE_POWER_CB_SHUTDOWN = 0x00010000, - /** indicates the application resumed after being put in suspend from a LiveArea event **/ - SCE_POWER_CB_RESUME_LIVEAREA = 0x00200000, - /** indicates the unit entered suspend mode **/ - SCE_POWER_CB_SUSPENDING = 0x00400000, - /** indicates the unit resumed from suspend mode **/ - SCE_POWER_CB_RESUMING = 0x00800000, - /** indicates the system is taking a screenshot **/ - SCE_POWER_CB_SCREENSHOT_TRIGGER = 0x04000000, - /** indicates the system shown the Quick Menu screen **/ - SCE_POWER_CB_QUICK_MENU_TRIGGER = 0x10000000, - /** indicates the PS button was pushed **/ - SCE_POWER_CB_PS_BUTTON_PRESS = 0x20000000, - /** indicates the system shown the shutdown screen **/ - SCE_POWER_CB_SHUTDOWN_MENU_TRIGGER = 0x40000000, - /** indicates the system shown the unlock screen **/ - SCE_POWER_CB_UNLOCK_MENU_TRIGGER = 0x80000000, + SCE_POWER_CB_LOWBATTERY = 0x00000100, + /** indicates there is a battery present in the unit */ + SCE_POWER_CB_BATTERY_EXIST = 0x00000080 } ScePowerCallbackType; /* GPU, WLAN/COM configuration setting */ |