hwengine: Add missing default binds for camera movement and team chat
authorWuzzy <Wuzzy2@mail.ru>
Tue, 07 May 2019 13:15:00 +0200
changeset 14915 5a6da39c5f2a
parent 14914 66b510a8b81c
child 14916 d4a19bf6687e
hwengine: Add missing default binds for camera movement and team chat
ChangeLog.txt
hedgewars/uInputHandler.pas
--- a/ChangeLog.txt	Mon May 06 23:03:16 2019 +0200
+++ b/ChangeLog.txt	Tue May 07 13:15:00 2019 +0200
@@ -58,6 +58,7 @@
  + Precise + zoom in/out changes zoom in smaller steps
  + Precise + volume up/down changes volume in smaller steps
  + New chat command: “/help room” (shows room chat commands within the game)
+ * Fix broken default keyboard controls for team chat and camera movement
 
 Graphics:
  + Show contour of flying saucer when in highly opaque water
--- a/hedgewars/uInputHandler.pas	Mon May 06 23:03:16 2019 +0200
+++ b/hedgewars/uInputHandler.pas	Tue May 07 13:15:00 2019 +0200
@@ -375,8 +375,10 @@
     RegisterBind(DefaultBinds, _S'o', 'gearinfo');
 
     //numpad
-    //DefaultBinds[265]:= '+volup';
-    //DefaultBinds[256]:= '+voldown';
+    RegisterBind(DefaultBinds, 'keypad_8', '+cur_u');
+    RegisterBind(DefaultBinds, 'keypad_6', '+cur_r');
+    RegisterBind(DefaultBinds, 'keypad_4', '+cur_l');
+    RegisterBind(DefaultBinds, 'keypad_2', '+cur_d');
 
     RegisterBind(DefaultBinds, _S'0', '+volup');
     RegisterBind(DefaultBinds, _S'9', '+voldown');
@@ -387,6 +389,7 @@
     RegisterBind(DefaultBinds, _S'p', 'pause');
     RegisterBind(DefaultBinds, _S's', '+speedup');
     RegisterBind(DefaultBinds, _S't', 'chat');
+    RegisterBind(DefaultBinds, _S'u', 'chat team');
     RegisterBind(DefaultBinds, _S'y', 'confirm');
 
     RegisterBind(DefaultBinds, 'mousem', 'zoomreset');