Sfoglia il codice sorgente

Remove "z" shortcut for console (consistent with scripting samples).

Yao Wei Tjong 姚伟忠 9 anni fa
parent
commit
d2fe7b1228
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Source/Samples/Sample.inl

+ 2 - 2
Source/Samples/Sample.inl

@@ -247,8 +247,8 @@ void Sample::HandleKeyDown(StringHash eventType, VariantMap& eventData)
 
 
     int key = eventData[P_KEY].GetInt();
     int key = eventData[P_KEY].GetInt();
 
 
-    // Toggle console with F1 or Z
-    if (key == KEY_F1 || key == 'Z')
+    // Toggle console with F1
+    if (key == KEY_F1)
         GetSubsystem<Console>()->Toggle();
         GetSubsystem<Console>()->Toggle();
 
 
     // Toggle debug HUD with F2
     // Toggle debug HUD with F2