Remove hardcoded default gamepad bindings
authorWuzzy <Wuzzy2@mail.ru>
Sun, 28 Jul 2019 00:36:09 +0200 (2019-07-27)
changeset 15279 7ab5cf405686
parent 15278 16f389fcd462
child 15280 b12f63054c94
child 15283 c4fd2813b127
Remove hardcoded default gamepad bindings They just cause too much confusion and there is no way the player can disable them. Done because a player complained about exactly this
README.md
hedgewars/uInputHandler.pas
--- a/README.md	Sat Jul 27 03:42:17 2019 +0200
+++ b/README.md	Sun Jul 28 00:36:09 2019 +0200
@@ -70,25 +70,6 @@
 * T: Chat
 * U: Clan chat
 
-### Default controller controls
-Hedgewars also supports controllers. By default, Hedgewars sets up a few
-controls for your first (!) connected controller.
-This default might not be ideal, we recommend you set manual controls
-in the settings menu.
-
-* 1st D-pad: Walk and aim
-* 2nd D-pad / 1st thumbstick: Move camera/cursor
-* Button  1: Long jump
-* Button  2: High jump
-* Button  3: Attack
-* Button  4: Ammo menu
-* Button  5: Precise
-* Button  6: Select target, or pick weapon (in ammo menu)
-* Button  7: Switch hedgehog
-* Button  8: Change timer
-* Button  9: Find hedgehog / toggle auto camera
-* Button 10: Mission panel
-
 For the full list, go to the Hedgewars settings. Also read the weapon tooltips
 for weapon-specific controls.
 
--- a/hedgewars/uInputHandler.pas	Sat Jul 27 03:42:17 2019 +0200
+++ b/hedgewars/uInputHandler.pas	Sun Jul 28 00:36:09 2019 +0200
@@ -434,40 +434,6 @@
     RegisterBind(DefaultBinds, 'right', '+right');
     RegisterBind(DefaultBinds, 'left_shift', '+precise');
 
-    // Default controls for first connected controller
-    { NOTE: This is provided for convenience so players
-    don't have to set-up the controller entirely in a new install.
-    It's not ideal, so players are still encourages to
-    set up things manually. }
-    // Essential controls
-    RegisterBind(DefaultBinds, 'j0h0r', '+right');
-    RegisterBind(DefaultBinds, 'j0h0l', '+left');
-    RegisterBind(DefaultBinds, 'j0h0u', '+up');
-    RegisterBind(DefaultBinds, 'j0h0d', '+down');
-    RegisterBind(DefaultBinds, 'j0b0', 'ljump');
-    RegisterBind(DefaultBinds, 'j0b1', 'hjump');
-    RegisterBind(DefaultBinds, 'j0b2', '+attack');
-    RegisterBind(DefaultBinds, 'j0b3', 'ammomenu');
-    RegisterBind(DefaultBinds, 'j0b4', '+precise');
-    RegisterBind(DefaultBinds, 'j0b5', 'put');
-    RegisterBind(DefaultBinds, 'j0b6', 'switch');
-    RegisterBind(DefaultBinds, 'j0b7', 'timer_u');
-
-    // Cursor movement (also essential)
-    RegisterBind(DefaultBinds, 'j0h1r', '+cur_r');
-    RegisterBind(DefaultBinds, 'j0h1l', '+cur_l');
-    RegisterBind(DefaultBinds, 'j0h1d', '+cur_d');
-    RegisterBind(DefaultBinds, 'j0h1u', '+cur_u');
-
-    RegisterBind(DefaultBinds, 'j0a0u', '+cur_r');
-    RegisterBind(DefaultBinds, 'j0a0d', '+cur_l');
-    RegisterBind(DefaultBinds, 'j0a1u', '+cur_d');
-    RegisterBind(DefaultBinds, 'j0a1d', '+cur_u');
-
-    // Additional controls
-    RegisterBind(DefaultBinds, 'j0b8', 'findhh');
-    RegisterBind(DefaultBinds, 'j0b9', '+mission');
-
     loadBinds('dbind', cPathz[ptConfig] + '/settings.ini');
 end;