Board index FlightGear Support Flying

Mouse wheel control rudder

Controlling your aircraft, using the autopilot etc.

Mouse wheel control rudder

Postby namkhai » Thu Dec 28, 2017 11:54 pm

Hi, I am new on FlightGear, and I would use my mouse wheel for controlling the rudder.

I have searched in DuckDuckGo, but I finded nothing, I know that I need edit the flightgear/data/mice.xml, but I no have idea of how I can do this.

Thanks :D

P.D.
My OS specs are:
OS: Manjaro Linux x86_64
Host: Inspiron 3459
Kernel: 4.14.8-1-MANJARO
Resolution: 1366x768
DE: KDE
CPU: Intel i5-6200U (4) @ 2.800GHz
GPU: Intel HD Graphics 520
Memory: 5828MiB
namkhai
 
Posts: 1
Joined: Thu Dec 28, 2017 11:43 pm

Re: Mouse wheel control rudder

Postby Michat » Thu Jan 04, 2018 2:06 am

Hello namkhai

Just press TAB in order to get controls over mouse mode. Left click before moving mouse Left-Right. That''s the standard way.

For the wheel mouse, no idea, I'm just writing to rush your unanswer post if maybe some dev is available during Hollidays.


Welcome aboard, hope you enjoy FG.

Have a nice flight.
User avatar
Michat
 
Posts: 1226
Joined: Mon Jan 25, 2010 7:24 pm
Location: Spain
Version: 191b
OS: MX 21 Fluxbox oniMac

Re: Mouse wheel control rudder

Postby Michat » Thu Jan 04, 2018 2:39 am

Try in editing mice.xml
Make a back up first. These are two approaches.

Code: Select all
   <!-- extra buttons control [s]elevator trim[/s] for rudder-->
   <!-- these are [s]often[/s] assigned to mouse-wheel motion in Linux -->
   
   
<!--First method-->
<!-- With factor offset -->

<button n="3">
  <desc>Rudder</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
   <factor>1.0</factor>
   <offset>0.0</offset>
  </binding>
 </axis>   

<button n="4">
  <desc>Rudder</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
   <factor>1.0</factor>
   <offset>0.0</offset>
  </binding>
 </axis>   
   
<!--Second method-->

<!--With step type -->

 <button n="3">
  <desc>Rudder</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
 <step type="double">0.01</step>
  </binding>
 </axis>   


<button n="4">
  <desc>Rudder</desc>
  <binding>
   <command>property-scale</command>
   <property>/controls/flight/rudder</property>
 <step type="double">0.01</step>
  </binding>
 </axis>   
User avatar
Michat
 
Posts: 1226
Joined: Mon Jan 25, 2010 7:24 pm
Location: Spain
Version: 191b
OS: MX 21 Fluxbox oniMac


Return to Flying

Who is online

Users browsing this forum: No registered users and 0 guests