Here is a sample that will show you what your looking for. I used a user code block to add
the %3d so it holds three places for printing on the graphics display. We are going to release
an update on Monday that will add this feature to the graphics display along with a few new
ones.
Code:
while ( 1 )
{
Joy1_X = GetOIAInput ( 1 , 1 ) ;
Joy1_Y = GetOIAInput ( 1 , 2 ) ;
PrintTextToGD ( 2 , 3 , 0 , "Port 1 Joystick X: %3d\n" , (int)Joy1_X ) ;
PrintTextToGD ( 4 , 3 , 0 , "Port 1 Joystick Y: %3d\n" , (int)Joy1_Y ) ;
}