From 5b7e8043571bb959891c06a6dd5c7e9ef87d42e5 Mon Sep 17 00:00:00 2001 From: tobigun Date: Mon, 31 Mar 2008 15:17:09 +0000 Subject: beep() removed git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@989 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UJoystick.pas | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Game/Code/Classes/UJoystick.pas') 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; -- cgit v1.2.3