hedgewars/uInputHandler.pas
changeset 13417 236cc4cf2448
parent 13348 93325e13d329
parent 12871 13143137c2ff
child 13464 08a3851aaf67
equal deleted inserted replaced
13415:7487e683c6b6 13417:236cc4cf2448
   495 
   495 
   496 procedure ControllerInit;
   496 procedure ControllerInit;
   497 var j: Integer;
   497 var j: Integer;
   498 begin
   498 begin
   499 ControllerEnabled:= 0;
   499 ControllerEnabled:= 0;
   500 {$IFDEF IPHONE}
   500 {$IFDEF IPHONEOS}
   501 exit; // joystick subsystem disabled on iPhone
   501 exit; // joystick subsystem disabled on iPhone
   502 {$ENDIF}
   502 {$ENDIF}
   503 
   503 
   504 SDL_InitSubSystem(SDL_INIT_JOYSTICK);
   504 SDL_InitSubSystem(SDL_INIT_JOYSTICK);
   505 ControllerNumControllers:= SDL_NumJoysticks();
   505 ControllerNumControllers:= SDL_NumJoysticks();