+if ($reader) {
+ Glib::IO->add_watch(fileno($reader->fh), 'in', \&scx_read, $reader);
+} else {
+ # Just display some random values
+ $gui->rounds('5/13');
+ $gui->time('53.4');
+ $gui->best_lap('12.3');
+
+ $track->car(0)->set_lap(13);
+ $track->car(1)->set_lap(11);
+ $track->car(2)->set_lap(10);
+ $track->car(3)->set_lap(undef);
+ $track->car(4)->set_lap(undef);
+ $track->car(5)->set_lap(undef);
+
+ $track->car(0)->set_laptime(9.12322);
+ $track->car(1)->set_laptime(15.313);
+ $track->car(2)->set_laptime(5.989);
+
+ $track->car(0)->set_fuel(6);
+ $track->car(1)->set_fuel(2);
+ $track->car(2)->set_fuel(8);
+
+ $track->car(0)->set_throttle(0);
+ $track->car(1)->set_throttle(8);
+ $track->car(2)->set_throttle(12);
+}
+