Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff, TyRaNiD
-
Torch
- Posts: 825
- Joined: Wed May 28, 2008 2:50 am
Post
by Torch »
How do I check if a suspend event was initiated by the PSP being idle and trying to shut off, or if the user pressed the power switch.
I already have a sysevent handler for suspend in my app BTW.
-
Insert_witty_name
- Posts: 376
- Joined: Wed May 10, 2006 11:31 pm
Post
by Insert_witty_name »
See the power callback sample in the SDK.
PSP_POWER_CB_POWER_SWITCH is when the switch is pressed.
PSP_POWER_CB_SUSPENDING is when it's called by the system automatically.
-
Torch
- Posts: 825
- Joined: Wed May 28, 2008 2:50 am
Post
by Torch »
Thanks. Used it in Hold+ v2.71