Re: [Flightgear-devel] Dedicated visual channels

2004-06-14 Thread Curtis L. Olson
Frederic Bouvier wrote:
Jacek wrote:
 

Curtis L. Olson wrote:
   

Is there any functionality currently built into FG to request that the 
mouse pointer be turned off or hidden.  This would be useful for 
things like a dedicated visual channel.

Likewise, I quickly browsed through the source code and couldn't see 
how the frame rate counter (seen when the hud is turned off) is 
drawn.  Anyone know how I can get rid of that.
 

Today's compilation(2004-06-14, about 19:00 GMT): there is not frame 
rate counter on the screen. :'(I miss it. Is it for ever?
   

Too late, Curt already removed it ;-)
You can get it back by changing your local preferences.xml
change :
false
into :
true
 

There is also a toggle option in the gui in the "rendering" dialog box.
Curt.
--
Curtis Olsonhttp://www.flightgear.org/~curt 
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Dedicated visual channels

2004-06-14 Thread Frederic Bouvier
Jacek wrote:

> Curtis L. Olson wrote:
> 
> > Is there any functionality currently built into FG to request that the 
> > mouse pointer be turned off or hidden.  This would be useful for 
> > things like a dedicated visual channel.
> >
> > Likewise, I quickly browsed through the source code and couldn't see 
> > how the frame rate counter (seen when the hud is turned off) is 
> > drawn.  Anyone know how I can get rid of that.
> 
> Today's compilation(2004-06-14, about 19:00 GMT): there is not frame 
> rate counter on the screen. :'(I miss it. Is it for ever?

Too late, Curt already removed it ;-)
You can get it back by changing your local preferences.xml

change :
false

into :
true

Cheers,
-Fred



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Dedicated visual channels

2004-06-14 Thread Jacek
Curtis L. Olson wrote:
Is there any functionality currently built into FG to request that the 
mouse pointer be turned off or hidden.  This would be useful for 
things like a dedicated visual channel.

Likewise, I quickly browsed through the source code and couldn't see 
how the frame rate counter (seen when the hud is turned off) is 
drawn.  Anyone know how I can get rid of that.
Today's compilation(2004-06-14, about 19:00 GMT): there is not frame 
rate counter on the screen. :'(I miss it. Is it for ever?

Thanks,
Curt.
Regards, Jacek.
___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Dedicated visual channels

2004-06-14 Thread Curtis L. Olson
Norman Vine wrote:
Whatever became of the idea [patch?] to 
turn the cursor off after some amount of idle time?
   

This was in the WIN32 code at one point, but that was with the
original 'C' GUI interface.
I don't have any idea of how to go about this with the current code
but IIRC all I did was use a few variables 
mouse_timeout_val, mouse_timed_out and last_mouse_time 
 

Ok, I believe I have this working under the current code 
(Input/input.[ch]xx).  Configurable in preferences.xml.  Defaults to 
feature inactive.

Regards,
Curt.
--
Curtis Olsonhttp://www.flightgear.org/~curt 
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Dedicated visual channels

2004-06-14 Thread Norman Vine
Curtis L. Olson writes:
> 
> Norman Vine wrote:
> 
> >Curtis L. Olson writes:
> >  
> >
> >>Is there any functionality currently built into FG to request that the 
> >>mouse pointer be turned off or hidden.  This would be useful for things 
> >>like a dedicated visual channel.
> >>
> >>
> >
> >TurnCursorOff() in GUI / mouse.cxx
> >  
> >
> 
> Is there any interface to this?  

None other then the code itself that I am aware of

> Whatever became of the idea [patch?] to 
> turn the cursor off after some amount of idle time?

This was in the WIN32 code at one point, but that was with the
original 'C' GUI interface.

I don't have any idea of how to go about this with the current code
but IIRC all I did was use a few variables 
mouse_timeout_val, mouse_timed_out and last_mouse_time 

last_mouse_time was set whenever there was a mouse_event 
and mouse_timed_out was set when current_time - mouse_timeout_val
was greater then last_mouse_time in the main loop.

something like

if( (current_time - mouse_timeout_val) > last_mouse_time)
{
 TurnCursorOff();
 /* mouse_timed_out = true; */
}

then at the start of guiMouseFunc()

if( mouse_timed_out )
{
TurnCursorOn();
}

Note I didn't and still don't know how to appropriately turn
the cursor on/off under 'X' hence this was #ifdef'd to only be
for WIN32.  

However I guess one could just load a completely transparent 
cursor as a kludge :-)

HTH

Norman

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Dedicated visual channels

2004-06-14 Thread Andy Ross
Curtis L. Olson wrote:
> Is there any functionality currently built into FG to request that
> the mouse pointer be turned off or hidden.  This would be useful for
> things like a dedicated visual channel.

This is soft-coded these days.  In mice.xml, you can define a cursor
image for each mode.  You should be able to use "none" to specify an
invisible image.  Mappings for mouse buttons are likewise handled in
that file, and of course you can set the mode property from elsewhere
as well.

Andy


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] Dedicated visual channels

2004-06-14 Thread Curtis L. Olson
Norman Vine wrote:
Curtis L. Olson writes:
 

Is there any functionality currently built into FG to request that the 
mouse pointer be turned off or hidden.  This would be useful for things 
like a dedicated visual channel.
   

TurnCursorOff() in GUI / mouse.cxx
 

Is there any interface to this?  Whatever became of the idea [patch?] to 
turn the cursor off after some amount of idle time?

Likewise, I quickly browsed through the source code and couldn't see how 
the frame rate counter (seen when the hud is turned off) is drawn.  
Anyone know how I can get rid of that.
   

I think that this is in the XML these days
 

I thought that too which I guess was why I could never find where the 
fps was actually being displayed. :-)

Curt.
--
Curtis Olsonhttp://www.flightgear.org/~curt 
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:2f585eeea02e2c79d7b1d8c4963bae2d

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


RE: [Flightgear-devel] Dedicated visual channels

2004-06-14 Thread Norman Vine
Curtis L. Olson writes:
> 
> Is there any functionality currently built into FG to request that the 
> mouse pointer be turned off or hidden.  This would be useful for things 
> like a dedicated visual channel.

TurnCursorOff() in GUI / mouse.cxx

 
> Likewise, I quickly browsed through the source code and couldn't see how 
> the frame rate counter (seen when the hud is turned off) is drawn.  
> Anyone know how I can get rid of that.

I think that this is in the XML these days

but see
#ifdef DISPLAY_COUNTER at the bottom of 
Cockpit / cockpit.cxx / fgCockpitUpdate()

HTH

Norman

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel