[Config][PS4] Nintendo Switch Joycons

Post or request custom configuration files.
Post Reply
Cybereu
Posts: 153
Joined: Sun Jul 10, 2011 1:10 pm

[Config][PS4] Nintendo Switch Joycons

Post by Cybereu »

Platform: PS4
Device: Nintendo Switch Joycons
Playability: Good
Config data:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <controller id="1" dpi="0" type="DS4">
    <configuration id="1">
      <trigger type="" id="" name="" button_id="" switch_back="no" delay="0"/>
      <mouse_options_list>
        <mouse name="" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
      </mouse_options_list>
      <intensity_list/>
      <button_map>
        <button id="abs_axis_0" label="Capture">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="4"/>
        </button>
        <button id="abs_axis_1" label="+">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="10"/>
        </button>
        <button id="abs_axis_2" label="Home">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="11"/>
        </button>
        <button id="abs_axis_3" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="14"/>
        </button>
        <button id="abs_axis_4" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="17"/>
        </button>
        <button id="abs_axis_5" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="15"/>
        </button>
        <button id="abs_axis_6" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="16"/>
        </button>
        <button id="abs_axis_7" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="2"/>
        </button>
        <button id="abs_axis_8" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="1"/>
        </button>
        <button id="abs_axis_9" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="0"/>
        </button>
        <button id="abs_axis_10" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="3"/>
        </button>
        <button id="abs_axis_11" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="5"/>
        </button>
        <button id="abs_axis_12" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="6"/>
        </button>
        <button id="abs_axis_13" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="7"/>
        </button>
        <button id="abs_axis_14" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="8"/>
        </button>
        <button id="abs_axis_15" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="12"/>
        </button>
        <button id="abs_axis_16" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="13"/>
        </button>
        <button id="abs_axis_17" label="-">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="button" id="9"/>
        </button>
      </button_map>
      <axis_map>
        <axis id="rel_axis_0" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="axis" id="0" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
        </axis>
        <axis id="rel_axis_1" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="axis" id="1" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
        </axis>
        <axis id="rel_axis_2" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="axis" id="2" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
        </axis>
        <axis id="rel_axis_3" label="">
          <device type="joystick" id="0" name="Nintendo Switch Combined Joy-Cons"/>
          <event type="axis" id="3" dead_zone="0" multiplier="0.004" exponent="1.00" shape=""/>
        </axis>
      </axis_map>
      <joystick_corrections_list/>
    </configuration>
    <configuration id="2">
      <trigger type="mouse" id="0" name="" button_id="BUTTON_RIGHT" switch_back="yes" delay="0"/>
      <mouse_options_list>
        <mouse name="" id="0" mode="Aiming" buffer_size="1" filter="0.00"/>
      </mouse_options_list>
      <intensity_list/>
      <button_map/>
      <axis_map/>
      <joystick_corrections_list/>
    </configuration>
  </controller>
</root>

[img]https://www.linkpicture.com/q/2_170.jpg[/img]

This config is set to use Nintendo Switch Joycons as Dualshock 4, some steps are required on Linux to work, I don`t know yet on Windows.
Currently, the kernel driver hid_nintendo by DanielOgorchock is being reviewed for a Kernel release. However, nicman23 released dkms-hid-nintendo so it's possible to easily install hid_nintendo as a kernel module.
DanielOgorchock also developed joycond, a daemon that handles the controllers so you can easily set up Joycons as a single (sideways) or combined L+R as one input device.

Instructions for Joycons on Linux:
https://joaorb64.github.io/2020/04/08/u ... linux.html
or

Code: Select all

How to use Nintendo Switch controllers on Linux

First, install dkms-hid-nintendo:

git clone https://github.com/nicman23/dkms-hid-nintendo
cd dkms-hid-nintendo
sudo dkms add .
sudo dkms build nintendo -v 2.0
sudo dkms install nintendo -v 2.0

Then, install joycond:

git clone https://github.com/DanielOgorchock/joycond
cd joycond
cmake .
sudo make install
sudo systemctl enable --now joycond
[youtube]https://youtu.be/V0YfOQzXyGs[/youtube]
Attachments
2.jpg
2.jpg (109.23 KiB) Viewed 803 times

Post Reply