diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-31 15:17:09 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-31 15:17:09 +0000 |
commit | 5b7e8043571bb959891c06a6dd5c7e9ef87d42e5 (patch) | |
tree | dc1bf277c3446c7a07baab53a52ee09f488cba60 /Game/Code/Classes/UJoystick.pas | |
parent | 13bf0be662f660d9f283b6c01b20dc2137dc835e (diff) | |
download | usdx-5b7e8043571bb959891c06a6dd5c7e9ef87d42e5.tar.gz usdx-5b7e8043571bb959891c06a6dd5c7e9ef87d42e5.tar.xz usdx-5b7e8043571bb959891c06a6dd5c7e9ef87d42e5.zip |
beep() removed
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@989 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes/UJoystick.pas')
-rw-r--r-- | Game/Code/Classes/UJoystick.pas | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Game/Code/Classes/UJoystick.pas b/Game/Code/Classes/UJoystick.pas index 6b4ea63f..fbbcaebd 100644 --- a/Game/Code/Classes/UJoystick.pas +++ b/Game/Code/Classes/UJoystick.pas @@ -57,12 +57,15 @@ begin {// joystick support SDL_JoystickEventState(SDL_IGNORE); SDL_InitSubSystem(SDL_INIT_JOYSTICK); - if SDL_NumJoysticks <> 1 then beep; + if SDL_NumJoysticks <> 1 then + Log.LogStatus('Joystick count <> 1', 'TJoy.Create'); SDL_Joy := SDL_JoystickOpen(0); - if SDL_Joy = nil then beep; + if SDL_Joy = nil then + Log.LogError('SDL_JoystickOpen failed', 'TJoy.Create'); - if SDL_JoystickNumButtons(SDL_Joy) <> 16 then beep; + if SDL_JoystickNumButtons(SDL_Joy) <> 16 then + Log.LogStatus('Joystick button count <> 16', 'TJoy.Create'); // SDL_JoystickEventState(SDL_ENABLE); // Events don't work - thay hang the whole application with SDL_JoystickEventState(SDL_ENABLE) @@ -109,7 +112,7 @@ begin exit; end; N := SDL_JoystickNumButtons(SDL_Joy); - //if N < 6 then beep; + //if N < 6 then Log.LogStatus('Joystick button count < 6', 'TJoy.Create'); for B := 0 to 5 do begin JoyUnit.Button[B].Enabled := true; |