diff mm7_6.cpp @ 2201:34035536bbf5

Finishing keyboard.cpp stuff
author Grumpy7
date Mon, 03 Feb 2014 23:06:14 +0100
parents d28d3c006077
children c4f87fb3cfee
line wrap: on
line diff
--- a/mm7_6.cpp	Mon Feb 03 00:58:12 2014 +0100
+++ b/mm7_6.cpp	Mon Feb 03 23:06:14 2014 +0100
@@ -894,10 +894,10 @@
     for ( uint i = 0; i < 30; ++i )
     {
       inputAction = (InputAction)i;
-      if ( pKeyActionMap->pToggleTypes[(InputAction)i] )
-        v4 = pKeyboard->WasKeyPressed(pKeyActionMap->pVirtualKeyCodesMapping[(InputAction)i]);
+      if ( pKeyActionMap->pToggleTypes[inputAction] )
+        v4 = pKeyboard->WasKeyPressed(pKeyActionMap->pVirtualKeyCodesMapping[inputAction]);
       else
-        v4 = pKeyboard->IsKeyBeingHeld(pKeyActionMap->pVirtualKeyCodesMapping[(InputAction)i]);
+        v4 = pKeyboard->IsKeyBeingHeld(pKeyActionMap->pVirtualKeyCodesMapping[inputAction]);
       if ( v4 )
       {
         switch ( inputAction )