From 0fdc1caebb556d0c709b5b8c81dfc66b65f5b1c1 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 2 Apr 2001 02:39:51 +0000 Subject: [PATCH] Updated for 8 ... --- src/Joystick/js_demo.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Joystick/js_demo.cxx b/src/Joystick/js_demo.cxx index 315f2526d..904a4097d 100644 --- a/src/Joystick/js_demo.cxx +++ b/src/Joystick/js_demo.cxx @@ -38,7 +38,7 @@ int main ( int, char ** ) for ( i = 0 ; i < Z ; i++ ) if ( useful[i] ) - printf ( "+---------------JS.%d-----------------", i ) ; + printf ( "+--------------------JS.%d----------------------", i ) ; printf ( "+\n" ) ; @@ -46,15 +46,15 @@ int main ( int, char ** ) if ( useful[i] ) { if ( js[i]->notWorking () ) - printf ( "| ~~~ Not Detected ~~~ " ) ; + printf ( "| ~~~ Not Detected ~~~ " ) ; else { printf ( "| Btns " ) ; for ( j = 0 ; j < js[i]->getNumAxes () ; j++ ) - printf ( "Ax:%d ", j ) ; + printf ( "Ax:%1d ", j ) ; - for ( ; j < 6 ; j++ ) + for ( ; j < 8 ; j++ ) printf ( " " ) ; } } @@ -63,7 +63,7 @@ int main ( int, char ** ) for ( i = 0 ; i < Z ; i++ ) if ( useful[i] ) - printf ( "+------------------------------------" ) ; + printf ( "+----------------------------------------------" ) ; printf ( "+\n" ) ; @@ -73,7 +73,7 @@ int main ( int, char ** ) if ( useful[i] ) { if ( js[i]->notWorking () ) - printf ( "| . . . . . . . . . " ) ; + printf ( "| . . . . . . . . . . . " ) ; else { int b ; @@ -85,7 +85,7 @@ int main ( int, char ** ) for ( j = 0 ; j < js[i]->getNumAxes () ; j++ ) printf ( "%+.1f ", ax[i][j] ) ; - for ( ; j < 6 ; j++ ) + for ( ; j < 8 ; j++ ) printf ( " . " ) ; } }