comparison mm7_6.cpp @ 2201:34035536bbf5

Finishing keyboard.cpp stuff
author Grumpy7
date Mon, 03 Feb 2014 23:06:14 +0100
parents d28d3c006077
children c4f87fb3cfee
comparison
equal deleted inserted replaced
2200:f0477fe92362 2201:34035536bbf5
892 if ( !pEventTimer->bPaused ) 892 if ( !pEventTimer->bPaused )
893 { 893 {
894 for ( uint i = 0; i < 30; ++i ) 894 for ( uint i = 0; i < 30; ++i )
895 { 895 {
896 inputAction = (InputAction)i; 896 inputAction = (InputAction)i;
897 if ( pKeyActionMap->pToggleTypes[(InputAction)i] ) 897 if ( pKeyActionMap->pToggleTypes[inputAction] )
898 v4 = pKeyboard->WasKeyPressed(pKeyActionMap->pVirtualKeyCodesMapping[(InputAction)i]); 898 v4 = pKeyboard->WasKeyPressed(pKeyActionMap->pVirtualKeyCodesMapping[inputAction]);
899 else 899 else
900 v4 = pKeyboard->IsKeyBeingHeld(pKeyActionMap->pVirtualKeyCodesMapping[(InputAction)i]); 900 v4 = pKeyboard->IsKeyBeingHeld(pKeyActionMap->pVirtualKeyCodesMapping[inputAction]);
901 if ( v4 ) 901 if ( v4 )
902 { 902 {
903 switch ( inputAction ) 903 switch ( inputAction )
904 { 904 {
905 case INPUT_MoveForward: 905 case INPUT_MoveForward: