comparison Game.cpp @ 2201:34035536bbf5

Finishing keyboard.cpp stuff
author Grumpy7
date Mon, 03 Feb 2014 23:06:14 +0100
parents 7a517c9a1d5b
children 44d956d4f838
comparison
equal deleted inserted replaced
2200:f0477fe92362 2201:34035536bbf5
2306 v35 = pKeyActionMap->GetActionVKey((enum InputAction)uAction); 2306 v35 = pKeyActionMap->GetActionVKey((enum InputAction)uAction);
2307 GUI_ReplaceHotkey(v35, LOBYTE(pPrevVirtualCidesMapping[uAction]), 0); 2307 GUI_ReplaceHotkey(v35, LOBYTE(pPrevVirtualCidesMapping[uAction]), 0);
2308 } 2308 }
2309 } 2309 }
2310 if ( uAction && uAction != 2 && uAction != 3 && uAction != 1 && uAction != 25 && uAction != 26 ) 2310 if ( uAction && uAction != 2 && uAction != 3 && uAction != 1 && uAction != 25 && uAction != 26 )
2311 pKeyToggleType = (KeyToggleType)1; 2311 pKeyToggleType = TOGGLE_OneTimePress;
2312 else 2312 else
2313 pKeyToggleType = (KeyToggleType)0; 2313 pKeyToggleType = TOGGLE_Continuously;
2314 pKeyActionMap->SetKeyMapping(uAction, pPrevVirtualCidesMapping[uAction], pKeyToggleType); 2314 pKeyActionMap->SetKeyMapping(uAction, pPrevVirtualCidesMapping[uAction], pKeyToggleType);
2315 ++uAction; 2315 ++uAction;
2316 } 2316 }
2317 while ( uAction < 28 ); 2317 while ( uAction < 28 );
2318 pKeyActionMap->StoreMappings(); 2318 pKeyActionMap->StoreMappings();