changeset 2674 | 2fce032f2f95 |
parent 2671 | 7e0f88013fe8 |
child 2678 | 334016e8d895 |
--- a/hedgewars/uKeys.pas Sun Jan 03 17:27:25 2010 +0000 +++ b/hedgewars/uKeys.pas Sun Jan 03 22:58:19 2010 +0000 @@ -413,8 +413,10 @@ procedure ControllerInit; var i, j: Integer; begin +SDL_InitSubSystem(SDL_INIT_JOYSTICK); + ControllerEnabled:= 0; -ControllerNumControllers:= SDL_NumJoysticks; +ControllerNumControllers:= SDL_NumJoysticks(); if ControllerNumControllers > 6 then ControllerNumControllers:= 6;