Board index FlightGear Development New features

Hiding mouse cursor  Topic is solved

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Hiding mouse cursor

Postby Merik » Wed Jan 12, 2011 11:19 pm

I'm using a custom mice.xml file which shows a "crosshair" cursor for mouse in mode 1. I want to hide the cursor in mode 1, totally. What value should I use?
I'm using FlightGear Git version on a Win 7 machine with an onboard ATI graphic card and 3 GB of RAM.

These are the link I've found useful: Types of AirspeedE6B emulatorAirspaces explained with examples
Merik
 
Posts: 191
Joined: Thu Jan 21, 2010 11:14 am

Re: Hiding mouse cursor

Postby Merik » Thu Mar 03, 2011 4:29 am

Any thoughts on this?
I'm using FlightGear Git version on a Win 7 machine with an onboard ATI graphic card and 3 GB of RAM.

These are the link I've found useful: Types of AirspeedE6B emulatorAirspaces explained with examples
Merik
 
Posts: 191
Joined: Thu Jan 21, 2010 11:14 am

Re: Hiding mouse cursor

Postby Gijs » Thu Mar 03, 2011 3:31 pm

Try the following Nasal code:
Code: Select all
gui.setCurstor(nil, nil, "none");

You can find a lit of all available cursor-types in Nasal/gui.nas.
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9355
Joined: Tue Jul 03, 2007 2:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Hiding mouse cursor

Postby Merik » Sat Mar 05, 2011 1:15 am

Thanks. Right now, I'm assigning cursor's at the beginning of the definition of each mouse mode in the mice.xml file, like this:

Code: Select all
...
<mode n="1">
   <cursor>crosshair</cursor>
...


How can I modify that to automatically hide the mouse pointer when I go to mode 1, but show it back when I go back to mode 0?
I'm using FlightGear Git version on a Win 7 machine with an onboard ATI graphic card and 3 GB of RAM.

These are the link I've found useful: Types of AirspeedE6B emulatorAirspaces explained with examples
Merik
 
Posts: 191
Joined: Thu Jan 21, 2010 11:14 am

Re: Hiding mouse cursor  

Postby Gijs » Sun Mar 06, 2011 10:21 am

I haven't tried, but it's worth to try:

Code: Select all
<mode n="1">
   <cursor>none</cursor>
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9355
Joined: Tue Jul 03, 2007 2:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Hiding mouse cursor

Postby Merik » Sun Mar 06, 2011 3:50 pm

Perfect :)
I'm using FlightGear Git version on a Win 7 machine with an onboard ATI graphic card and 3 GB of RAM.

These are the link I've found useful: Types of AirspeedE6B emulatorAirspaces explained with examples
Merik
 
Posts: 191
Joined: Thu Jan 21, 2010 11:14 am


Return to New features

Who is online

Users browsing this forum: No registered users and 1 guest