Difference between revisions of "User:Sodaplayer/linux-sandbox"

From DCS World Wiki - Hoggitworld.com
m (Update description and list for applications)
m (Update permissions section)
Line 1: Line 1:
 
== Peripherals ==
 
== Peripherals ==
There are other good resources for configuring and troubleshooting joysticks on Linux. To avoid a replication of those other resources, this section will be focused on getting peripherals running through Wine/Proton and cover common issues.
+
There are other good resources for configuring and troubleshooting joysticks on Linux. This section will be focused on being a streamlined reference for getting peripherals working through Wine/Proton and cover common issues.
  
=== Permissions ===
+
: ''See also: [https://wiki.archlinux.org/title/Gamepad The Arch Linux Wiki Gamepad Article] for how joysticks work in Linux''
 +
 
 +
=== Troubleshooting ===
 +
 
 +
==== Permissions ====
 +
If your joystick isn't appearing in DCS, check if you have permission to access it. Most modern joysticks are available through the [https://docs.kernel.org/input/input.html#evdev evdev] interface and will appear as a device in <code>/dev/input/event*</code>. To see what device is mapped to your joystick, list the files inside <code>/dev/input/by-id/</code> to see the names of each device mapped to a <code>/dev/input/event*</code> entry.
  
 
=== Virtual Inputs ===
 
=== Virtual Inputs ===

Revision as of 08:45, 27 December 2022

Peripherals

There are other good resources for configuring and troubleshooting joysticks on Linux. This section will be focused on being a streamlined reference for getting peripherals working through Wine/Proton and cover common issues.

See also: The Arch Linux Wiki Gamepad Article for how joysticks work in Linux

Troubleshooting

Permissions

If your joystick isn't appearing in DCS, check if you have permission to access it. Most modern joysticks are available through the evdev interface and will appear as a device in /dev/input/event*. To see what device is mapped to your joystick, list the files inside /dev/input/by-id/ to see the names of each device mapped to a /dev/input/event* entry.

Virtual Inputs

You may want to bind joystick controls to mouse buttons and key-presses. In Linux, the uinput module can be used to create virtual keyboards, mouses, and joysticks inputs.

Useful Applications

Some applications can read joystick inputs and configure virtual devices:

  • AntiMicroX - Maps controllers to mouse and keyboard buttons.
  • MoltenGamepad - Allows you to combine or split controllers into virtual gamepads.