User Tools

Site Tools


games:bsd:flightgear

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
games:bsd:flightgear [2024/09/09 17:20] Sean Rhonegames:bsd:flightgear [2024/10/15 13:13] (current) Sean Rhone
Line 1: Line 1:
-====== Joystick Research ======+====== Information ======
  
-  * Joysticks need to be at ''/dev/uhid#'' +  * FlightGear 
-  * uhidd by-default does ''/dev/uvhid#'', that can be symlinked to ''/dev/uhid#'' or be done automatically with ''uhidd -H uhid'' +  * Open-source flight simulator
-  * uhidd has a lot of flags in examples for keyboard/mouse/consumer, but a joystick only needs the virtual generic interface with ''uhidd -h'' +
-  * uhidd has to unbind whatever is on the joystick with ''uhidd -u'' +
-  * :?: Seemingly once ''uhidd'' takes control of the original ''/dev/input/event#'' device ''evdev'' nor ''joystick'' modules work and get unloaded according to ''Xorg.0.log'' +
-  * TODO: Put this somewhere outside of FlightGear+
  
-====== devd.conf ======+  * https://www.flightgear.org/ 
 +  * https://www.freshports.org/games/flightgear/
  
-  * https://forums.freebsd.org/threads/usb-joystick-with-flightgear.94855/#post-671138+====== Prerequisites ======
  
-  su -+  * [[bsd;freebsd_14.1_xfce|FreeBSD 14.1 (Xfce)]]
  
-  pkg install uhidd+  pkg install flightgear flightgear-data
  
-  ee '/usr/local/etc/devd/sidewinder-joystick-uhidd.conf'+====== Launch ======
  
-<code> +  * ''flightgear'' is launched with ''fgfs'' and has no desktop launcher 
-notify 0 { +  * ''fgfs'' can quick-check if game controllers are usable 
-        match "type" "ATTACH"; +  * TODO: Desktop launcher
-        match "ugen" "ugen[0-9]+.[0-9]+"; +
-        match "vendor" "0x045e"; +
-        match "product" "0x0008"; +
-        action "env LD_PRELOAD=/usr/lib/libcuse.so /usr/local/sbin/uhidd -h -H uhid -u /dev/$ugen"; +
-};</code>+
  
-====== Controls ======+  fgfs --launcher
  
-===== Axis =====+  fgjs
  
-  * Axis 0: View (horizontal) (stick-face dpad left/right) +====== Flags ======
-  * Axis 1: View (vertical (stick-face dpad up/down) (inverted) +
-  * Axis 2: Aileron (stick left/right) +
-  * Axis 3: Elevator (stick up/down) (inverted) +
-  * Axis 4: Rudder (stick twist left/right) +
-  * Axis 5: Throttle All Engine (wheel)+
  
-  * Axis 6: None (unknown) +<code>--fog-disable --disable-clouds3d</code>
-  * Axis 7: None (unknown)+
  
-===== Column 1 =====+<code>--prop:/sim/rendering/vsync-enable=false</code>
  
-  * 1: (stick trigger) +<code>--timeofday=dawn --random-wind --units-feet</code>
-  * 2: Flaps Down (stick bottom circle button) +
-  * 3: (C, top-left button)+
  
-===== Column 2 =====+===== multithreading-mode =====
  
-  * 1: (stick-face large button) +<code>--prop:/sim/rendering/multithreading-mode=AutomaticSelection</code>
-  * 2: (A, bottom-right button) +
-  * 3(D, bottom-left button)+
  
-===== Column 3 =====+<code>--prop:/sim/rendering/multithreading-mode=CullDrawThreadPerContext</code>
  
-  * 1: Flaps Up (stick-face top circle button) +<code>--prop:/sim/rendering/multithreading-mode=DrawThreadPerContext</code> 
-  * 2(B, top-right button) + 
-  * 3Total Freeze (arrow-up large button below wheel)+<code>--prop:/sim/rendering/multithreading-mode=CullThreadPerCameraDrawThreadPerContext</code>
  
/srv/www/wiki/data/attic/games/bsd/flightgear.1725916813.txt.gz · Last modified: (external edit)