I am new to pocket pc programming and I don't know how to check if buttons are held down, for example holding left will make a spaceship turn left.
In my game/demo have the following code for detecting buttons
void game::ButtonDown(int button) {
if(button == m_keys.vkUp)
{
rikt =1;
rx = 0;
ry = -1;
}
if(button == m_keys.vkDown)
{
rikt = 3;
}
and so on....
I want to have like this instead:
if(button held down)
{
angle = angle +1;
}
probably in the main loop, since void game::ButtonDown(int button) is on called once a button is press.
