hedgewars/uInputHandler.pas
changeset 7157 04f2155e392c
parent 7151 ec15d9e1a7e3
child 7180 53ffc8853008
child 7184 211ab9e2cb15
equal deleted inserted replaced
7150:fba3b14ff746 7157:04f2155e392c
   281 
   281 
   282 if ControllerNumControllers > 0 then
   282 if ControllerNumControllers > 0 then
   283     begin
   283     begin
   284     for j:= 0 to pred(ControllerNumControllers) do
   284     for j:= 0 to pred(ControllerNumControllers) do
   285         begin
   285         begin
   286         WriteLnToConsole('Using game controller: ' + SDL_JoystickName(j));
   286         WriteLnToConsole('Using game controller: ' + shortstring(SDL_JoystickName(j)));
   287         Controller[j]:= SDL_JoystickOpen(j);
   287         Controller[j]:= SDL_JoystickOpen(j);
   288         if Controller[j] = nil then
   288         if Controller[j] = nil then
   289             WriteLnToConsole('* Failed to open game controller!')
   289             WriteLnToConsole('* Failed to open game controller!')
   290         else
   290         else
   291             begin
   291             begin