This site is no longer active and is available for archival purposes only. Registration and login is disabled.

How to detect when the user press the power buton?


How to detect when the user press the power buton?

Postby capikirk » Nov 12, 2007 @ 1:19pm

I need to close my app when the user powers down the pda. But i don't know how to capture the event. It works with any other button using :

HRESULT SecondEventHandler::onKeyDown(DWORD dwKey, KeyList& keylist)
{
return -1;
}

but it doesn't capture the power button.

any advice?
capikirk
pm Member
 
Posts: 4
Joined: Mar 1, 2007 @ 10:11pm


Return to GledPlay


Forum Description

Game Engine for Embedded Devices. Simple, complete, and powerful. Focused on the game.

Moderators:

Matias, Sergio

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron