diff options
Diffstat (limited to 'code/unix')
-rw-r--r-- | code/unix/linux_glimp.c | 4 | ||||
-rw-r--r-- | code/unix/linux_joystick.c | 12 | ||||
-rw-r--r-- | code/unix/sdl_glimp.c | 30 |
3 files changed, 23 insertions, 23 deletions
diff --git a/code/unix/linux_glimp.c b/code/unix/linux_glimp.c index 71378c3..4cdc799 100644 --- a/code/unix/linux_glimp.c +++ b/code/unix/linux_glimp.c @@ -1769,7 +1769,7 @@ void GLimp_WakeRenderer( void *data ) {} /*****************************************************************************/ void IN_Init(void) { - Com_Printf ("\n------- Input Initialization -------\n"); + Com_DPrintf ("\n------- Input Initialization -------\n"); // mouse variables in_mouse = Cvar_Get ("in_mouse", "1", CVAR_ARCHIVE); in_dgamouse = Cvar_Get ("in_dgamouse", "1", CVAR_ARCHIVE); @@ -1795,7 +1795,7 @@ void IN_Init(void) { mouse_avail = qfalse; IN_StartupJoystick( ); // bk001130 - from cvs1.17 (mkv) - Com_Printf ("------------------------------------\n"); + Com_DPrintf ("------------------------------------\n"); } void IN_Shutdown(void) diff --git a/code/unix/linux_joystick.c b/code/unix/linux_joystick.c index 1ab114b..d0720f2 100644 --- a/code/unix/linux_joystick.c +++ b/code/unix/linux_joystick.c @@ -76,7 +76,7 @@ void IN_StartupJoystick( void ) joy_fd = -1; if( !in_joystick->integer ) { - Com_Printf( "Joystick is not active.\n" ); + Com_DPrintf( "Joystick is not active.\n" ); return; } @@ -94,7 +94,7 @@ void IN_StartupJoystick( void ) char name[128]; int n = -1; - Com_Printf( "Joystick %s found\n", filename ); + Com_DPrintf( "Joystick %s found\n", filename ); /* Get rid of initialization messages. */ do { @@ -114,9 +114,9 @@ void IN_StartupJoystick( void ) strncpy( name, "Unknown", sizeof( name ) ); } - Com_Printf( "Name: %s\n", name ); - Com_Printf( "Axes: %d\n", axes ); - Com_Printf( "Buttons: %d\n", buttons ); + Com_DPrintf( "Name: %s\n", name ); + Com_DPrintf( "Axes: %d\n", axes ); + Com_DPrintf( "Buttons: %d\n", buttons ); /* Our work here is done. */ return; @@ -126,7 +126,7 @@ void IN_StartupJoystick( void ) /* No soup for you. */ if( joy_fd == -1 ) { - Com_Printf( "No joystick found.\n" ); + Com_DPrintf( "No joystick found.\n" ); return; } diff --git a/code/unix/sdl_glimp.c b/code/unix/sdl_glimp.c index 1136ac7..87bf8c7 100644 --- a/code/unix/sdl_glimp.c +++ b/code/unix/sdl_glimp.c @@ -1438,7 +1438,7 @@ void GLimp_WakeRenderer( void *data ) {} /*****************************************************************************/ void IN_Init(void) { - Com_Printf ("\n------- Input Initialization -------\n"); + Com_DPrintf ("\n------- Input Initialization -------\n"); // mouse variables in_mouse = Cvar_Get ("in_mouse", "1", CVAR_ARCHIVE); in_disablemacosxmouseaccel = Cvar_Get ("in_disablemacosxmouseaccel", "1", CVAR_ARCHIVE); @@ -1467,7 +1467,7 @@ void IN_Init(void) { mouse_avail = qfalse; IN_StartupJoystick( ); // bk001130 - from cvs1.17 (mkv) - Com_Printf ("------------------------------------\n"); + Com_DPrintf ("------------------------------------\n"); } void IN_Shutdown(void) @@ -1582,25 +1582,25 @@ void IN_StartupJoystick( void ) memset(&stick_state, '\0', sizeof (stick_state)); if( !in_joystick->integer ) { - Com_Printf( "Joystick is not active.\n" ); + Com_DPrintf( "Joystick is not active.\n" ); return; } if (!SDL_WasInit(SDL_INIT_JOYSTICK)) { - Com_Printf("Calling SDL_Init(SDL_INIT_JOYSTICK)...\n"); + Com_DPrintf("Calling SDL_Init(SDL_INIT_JOYSTICK)...\n"); if (SDL_Init(SDL_INIT_JOYSTICK) == -1) { - Com_Printf("SDL_Init(SDL_INIT_JOYSTICK) failed: %s\n", SDL_GetError()); + Com_DPrintf("SDL_Init(SDL_INIT_JOYSTICK) failed: %s\n", SDL_GetError()); return; } - Com_Printf("SDL_Init(SDL_INIT_JOYSTICK) passed.\n"); + Com_DPrintf("SDL_Init(SDL_INIT_JOYSTICK) passed.\n"); } total = SDL_NumJoysticks(); - Com_Printf("I see %d possible joysticks\n", total); + Com_DPrintf("%d possible joysticks\n", total); for (i = 0; i < total; i++) - Com_Printf("[%d] %s\n", i, SDL_JoystickName(i)); + Com_DPrintf("[%d] %s\n", i, SDL_JoystickName(i)); in_joystickNo = Cvar_Get( "in_joystickNo", "0", CVAR_ARCHIVE ); if( in_joystickNo->integer < 0 || in_joystickNo->integer >= total ) @@ -1609,16 +1609,16 @@ void IN_StartupJoystick( void ) stick = SDL_JoystickOpen( in_joystickNo->integer ); if (stick == NULL) { - Com_Printf( "No joystick opened.\n" ); + Com_DPrintf( "No joystick opened.\n" ); return; } - Com_Printf( "Joystick %d opened\n", in_joystickNo->integer ); - Com_Printf( "Name: %s\n", SDL_JoystickName(in_joystickNo->integer) ); - Com_Printf( "Axes: %d\n", SDL_JoystickNumAxes(stick) ); - Com_Printf( "Hats: %d\n", SDL_JoystickNumHats(stick) ); - Com_Printf( "Buttons: %d\n", SDL_JoystickNumButtons(stick) ); - Com_Printf( "Balls: %d\n", SDL_JoystickNumBalls(stick) ); + Com_DPrintf( "Joystick %d opened\n", in_joystickNo->integer ); + Com_DPrintf( "Name: %s\n", SDL_JoystickName(in_joystickNo->integer) ); + Com_DPrintf( "Axes: %d\n", SDL_JoystickNumAxes(stick) ); + Com_DPrintf( "Hats: %d\n", SDL_JoystickNumHats(stick) ); + Com_DPrintf( "Buttons: %d\n", SDL_JoystickNumButtons(stick) ); + Com_DPrintf( "Balls: %d\n", SDL_JoystickNumBalls(stick) ); SDL_JoystickEventState(SDL_QUERY); |