Changes

Jump to navigation Jump to search
2 bytes removed ,  15:44, 24 March 2017
no edit summary
Line 52: Line 52:     
  active_buttons = 0;
 
  active_buttons = 0;
   
  begin;
 
  begin;
   
  picture {  
 
  picture {  
 
   text { caption = " "; font_size = 16; } t_Text1; x = 0; y = 0;
 
   text { caption = " "; font_size = 16; } t_Text1; x = 0; y = 0;
 
  } P_Text;
 
  } P_Text;
   
  begin_pcl;
 
  begin_pcl;
   
  joystick stick = response_manager.get_joystick( 1 );  
 
  joystick stick = response_manager.get_joystick( 1 );  
   
  loop int i = 1
 
  loop int i = 1
 
  until false
 
  until false
 
  begin
 
  begin
stick.poll( );
+
stick.poll( );
t_Text1.set_caption("coordinates: " + string(stick.x()) + ":" + string(stick.y()), true);
+
t_Text1.set_caption("coordinates: " + string(stick.x()) + ":" + string(stick.y()), true);
P_Text.present();
+
P_Text.present();
 
  end;
 
  end;
  

Navigation menu