# HG changeset patch # User nemo # Date 1336855506 14400 # Node ID c431a4a8ab0f44fabb1e6643f0bd55202e17cb2f # Parent 8d4189609e907b7925d9ae731e71e1923979b1d2 unc0rr's magic macro diff -r 8d4189609e90 -r c431a4a8ab0f hedgewars/uInputHandler.pas --- a/hedgewars/uInputHandler.pas Sun May 13 00:40:01 2012 +0400 +++ b/hedgewars/uInputHandler.pas Sat May 12 16:45:06 2012 -0400 @@ -252,7 +252,7 @@ end; end; -quitKeyCode:= KeyNameToCode('q'); +quitKeyCode:= KeyNameToCode(_S'q'); // get the size of keyboard array SDL_GetKeyState(@k); @@ -289,14 +289,14 @@ //DefaultBinds[265]:= '+volup'; //DefaultBinds[256]:= '+voldown'; -DefaultBinds[KeyNameToCode('0')]:= '+volup'; -DefaultBinds[KeyNameToCode('9')]:= '+voldown'; -DefaultBinds[KeyNameToCode('c')]:= 'capture'; -DefaultBinds[KeyNameToCode('h')]:= 'findhh'; -DefaultBinds[KeyNameToCode('p')]:= 'pause'; -DefaultBinds[KeyNameToCode('s')]:= '+speedup'; -DefaultBinds[KeyNameToCode('t')]:= 'chat'; -DefaultBinds[KeyNameToCode('y')]:= 'confirm'; +DefaultBinds[KeyNameToCode(_S'0')]:= '+volup'; +DefaultBinds[KeyNameToCode(_S'9')]:= '+voldown'; +DefaultBinds[KeyNameToCode(_S'c')]:= 'capture'; +DefaultBinds[KeyNameToCode(_S'h')]:= 'findhh'; +DefaultBinds[KeyNameToCode(_S'p')]:= 'pause'; +DefaultBinds[KeyNameToCode(_S's')]:= '+speedup'; +DefaultBinds[KeyNameToCode(_S't')]:= 'chat'; +DefaultBinds[KeyNameToCode(_S'y')]:= 'confirm'; DefaultBinds[KeyNameToCode('mousem')]:= 'zoomreset'; DefaultBinds[KeyNameToCode('wheelup')]:= 'zoomout';