Skip to content

sdl2: enable hidapi sensor input for wiimote#18808

Merged
LibretroAdmin merged 1 commit intolibretro:masterfrom
webosbrew:wiimote-sdl2
Mar 8, 2026
Merged

sdl2: enable hidapi sensor input for wiimote#18808
LibretroAdmin merged 1 commit intolibretro:masterfrom
webosbrew:wiimote-sdl2

Conversation

@cscd98
Copy link
Copy Markdown
Contributor

@cscd98 cscd98 commented Mar 8, 2026

Guidelines

  1. Rebase before opening a pull request
  2. If you are sending several unrelated fixes or features, use a branch and a separate pull request for each
  3. If possible try squashing everything in a single commit. This is particularly beneficial in the case of feature merges since it allows easy bisecting when a problem arises
  4. RetroArch codebase follows C89 coding rules for portability across many old platforms check using C89_BUILD=1

Description

Enabled SDL2 sensors for the wiimote.

Note: you need to set permissions to the correct device. For me it was:

for i in /dev/hidraw*; do echo -n "$i: "; cat /sys/class/hidraw/$(basename $i)/device/uevent 2>/dev/null | grep "HID_ID=0005:0000057E:00000306" && break; done

sudo chmod 666 /dev/hidraw9 (your device)

but that will vary depending on your setup as other devices are present (keyboard, mouse etc).

or

echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0306", MODE="0666"' | sudo tee /etc/udev/rules.d/99-wiimote-hidraw.rules
sudo udevadm control --reload-rules

Related Issues

Related Pull Requests

Reviewers

@LibretroAdmin LibretroAdmin merged commit 712c330 into libretro:master Mar 8, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants