hedgewars/uInputHandler.pas
changeset 6994 28805595b9ec
parent 6992 b8f3d8991e92
child 7026 8d1724e1337e
equal deleted inserted replaced
6993:47830cf50574 6994:28805595b9ec
    69 // TODO: Scale on screen dimensions and/or axis value (game controller)?
    69 // TODO: Scale on screen dimensions and/or axis value (game controller)?
    70 //TODO what is this for?
    70 //TODO what is this for?
    71 movecursor(5 * CursorMovementX, 5 * CursorMovementY);
    71 movecursor(5 * CursorMovementX, 5 * CursorMovementY);
    72 
    72 
    73 
    73 
    74 //TODO reimplement
    74 (* 
    75 {$IFDEF 0}
    75 TODO reimplement
       
    76 $IFNDEF MOBILE
    76 // Controller(s)
    77 // Controller(s)
    77 k:= j; // should we test k for hitting the limit? sounds rather unlikely to ever reach it
    78 k:= j; // should we test k for hitting the limit? sounds rather unlikely to ever reach it
    78 for j:= 0 to Pred(ControllerNumControllers) do
    79 for j:= 0 to Pred(ControllerNumControllers) do
    79     begin
    80     begin
    80     for i:= 0 to Pred(ControllerNumAxes[j]) do
    81     for i:= 0 to Pred(ControllerNumAxes[j]) do
   101         begin
   102         begin
   102         tkbdn[k]:= ControllerButtons[j][i];
   103         tkbdn[k]:= ControllerButtons[j][i];
   103         inc(k, 1);
   104         inc(k, 1);
   104         end;
   105         end;
   105     end;
   106     end;
   106 {$ENDIF}
   107 $ENDIF *)
   107 
   108 
   108 end;
   109 end;
   109 
   110 
   110 
   111 
   111 procedure ProcessKey(code: LongInt; KeyDown: boolean);
   112 procedure ProcessKey(code: LongInt; KeyDown: boolean);