Board index FlightGear Development

How to trap mice in your Cessna 172P with general protection

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

How to trap mice in your Cessna 172P with general protection

Postby onox » Tue Oct 28, 2014 3:34 pm

  1. Apply the following patch:
    Code: Select all
    diff --git a/Aircraft/c172p/c172p-set.xml b/Aircraft/c172p/c172p-set.xml
    index 9494f76..644ad32 100644
    --- a/Aircraft/c172p/c172p-set.xml
    +++ b/Aircraft/c172p/c172p-set.xml
    @@ -368,6 +368,11 @@ Started October 23 2001 by John Check, fgpanels@rockfish.net
        </mod-up>
       </key>
       </keyboard>
    +  <mice>
    +   <mouse n="0">
    +    <mode-count type="int">2</mode-count>
    +   </mouse>
    +  </mice>
      </input>
     
     </PropertyList>
  2. Start FlightGear with the c172p
  3. Press the tab key twice. You should see the following printed to the console:
    Code: Select all
    Mouse mode 2 out of range
  4. Press your left mouse button once
  5. Watch how fgfs segfaults immediately

Btw, it should work with any aircraft :)
onox
Retired
 
Posts: 431
Joined: Fri Jun 20, 2014 2:45 pm

Re: How to trap mice in your Cessna 172P with general protec

Postby Hooray » Tue Oct 28, 2014 3:46 pm

you might want to add a backtrace and consider posting it via the issue tracker: https://code.google.com/p/flightgear-bugs/
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11925
Joined: Tue Mar 25, 2008 8:40 am

Re: How to trap mice in your Cessna 172P with general protec

Postby onox » Tue Oct 28, 2014 3:54 pm

Due to exams and other stuff this week, I don't really want to have to recompile FG again, so I hoped this would be easy enough for a core dev to reproduce ;)
onox
Retired
 
Posts: 431
Joined: Fri Jun 20, 2014 2:45 pm


Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest