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

Hardware Keys


Hardware Keys

Postby yeatd » Mar 13, 2003 @ 10:13pm

I have a Compaq H3870. I use the following code for my button down callback...

void CFMSce::ButtonDown( int button )
{
const InputDevice::KeyList& keys = GetInput()->GetKeyList();
if(button == keys.vkA)
{
m_keys.vkA = true;
m_keys.vkATimer[0] = PocketPC::GetTickCount();
}
...
}

But when I use the hardware buttons the actual value of 'button' does not match any of the KeyList id's returned by GetInput()->GetKeyList();
That is, if(button == keys.vkA) does not work for any of my buttons. :-(

Any Ideas??
Thanx.
yeatd
pm Member
 
Posts: 20
Joined: Feb 9, 2003 @ 1:11am
Location: Sussex/U.K


Postby Presto » Mar 13, 2003 @ 10:56pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby Presto » Mar 13, 2003 @ 11:41pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby yeatd » Mar 13, 2003 @ 11:49pm

yeatd
pm Member
 
Posts: 20
Joined: Feb 9, 2003 @ 1:11am
Location: Sussex/U.K


Postby Presto » Mar 14, 2003 @ 12:04am

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Postby yeatd » Mar 14, 2003 @ 12:26am

yeatd
pm Member
 
Posts: 20
Joined: Feb 9, 2003 @ 1:11am
Location: Sussex/U.K


Postby Kzinti » Mar 14, 2003 @ 7:43am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby yeatd » Mar 14, 2003 @ 8:01pm

yeatd
pm Member
 
Posts: 20
Joined: Feb 9, 2003 @ 1:11am
Location: Sussex/U.K


Postby yeatd » Mar 14, 2003 @ 8:35pm

yeatd
pm Member
 
Posts: 20
Joined: Feb 9, 2003 @ 1:11am
Location: Sussex/U.K


Postby damian » Mar 14, 2003 @ 9:45pm

damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby Presto » Mar 14, 2003 @ 10:06pm

User avatar
Presto
pm Insider
 
Posts: 763
Joined: Jan 20, 2003 @ 5:51am
Location: Kalesian Archipelago


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

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