hedgewars/uInputHandler.pas
branchios-develop
changeset 12866 13143137c2ff
parent 12790 abc9a99418cc
child 13412 236cc4cf2448
equal deleted inserted replaced
12864:73ebc894a725 12866:13143137c2ff
   419 
   419 
   420 procedure ControllerInit;
   420 procedure ControllerInit;
   421 var j: Integer;
   421 var j: Integer;
   422 begin
   422 begin
   423 ControllerEnabled:= 0;
   423 ControllerEnabled:= 0;
   424 {$IFDEF IPHONE}
   424 {$IFDEF IPHONEOS}
   425 exit; // joystick subsystem disabled on iPhone
   425 exit; // joystick subsystem disabled on iPhone
   426 {$ENDIF}
   426 {$ENDIF}
   427 
   427 
   428 SDL_InitSubSystem(SDL_INIT_JOYSTICK);
   428 SDL_InitSubSystem(SDL_INIT_JOYSTICK);
   429 ControllerNumControllers:= SDL_NumJoysticks();
   429 ControllerNumControllers:= SDL_NumJoysticks();