Ejemplo n.º 1
0
/*
===================
idKeyInput::ClearStates
===================
*/
void idKeyInput::ClearStates( void ) {
    int i;

    for ( i = 0; i < MAX_KEYS; i++ ) {
        if ( keys[i].down ) {
            PreliminaryKeyEvent( i, false );
        }
        keys[i].down = false;
    }

    // clear the usercommand states
    usercmdGen->Clear();
}
Ejemplo n.º 2
0
/*
===================
idKeyInput::ClearStates
===================
*/
void idKeyInput::ClearStates()
{
	for( int i = 0; i < K_LAST_KEY; i++ )
	{
		if( keys[i].down )
		{
			PreliminaryKeyEvent( i, false );
		}
		keys[i].down = false;
	}
	
	// clear the usercommand states
	usercmdGen->Clear();
}