LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2017, 12:53 AM   #1
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,362

Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
HOWTO: Get a Wii-U Pro Controller Working, including in WINE


I thought the steps to getting a Wii-U Pro Controller working were worth documenting...

Setup

Have your user account in the "games" group and following udev rule in say, /etc/udev.d/10-local.rules. That will give your user permission to use it:

Code:
DRIVERS=="wiimote", GROUP="games", MODE:="0660"
Have the following X configuration setting in, say, /etc/X11/xorg.conf.d/10-local.conf. That will fix the issue with the right stick moving the mouse cursor:

Code:
Section "InputClass"
    Identifier "Nintendo Wii Remote Pro Controller Whitelist"
    MatchProduct "Nintendo Wii Remote Pro Controller"
    MatchDevicePath "/dev/input/event*"
    Option "Ignore" "on"
EndSection
Then just pair, trust and connect it using blueman-applet. The "sync" button on the back is the one you use to put it into pairing mode.

Steam

I just use Steam's Big Picture to set up the controller's button mappings. That gets the controller working properly with, really, all Linux Steam games.

WINE

I'm on a multilib system, and I use WINE to run 32-bit games. Here's how I got my Wii-U Pro controller working with DoDonPachi Resurrection, which runs with the wrong button mappings otherwise.

In a 32-bit VM, I built SDL2 and koku-xinput-wine. I transferred the SDL2 package to my 64-bit multilib installation, converted it with convertpkg-compat32, and installed it.

I ran "wine control" and saw that there were two joysticks: one "js" and one "event". I disabled the "js" one.

I copied the gamecontrollerdb.txt, linked from koku-xinput-wine's README file, to DoDonPachi Resurrection's installation directory.

From that directory, I used WINE to run the executable, which is named default.exe:

Code:
LD_PRELOAD="/path/to/koku-xinput-wine.so" wine default.exe
And the game works with proper gamepad mappings! As far as I know, koku-xinput-wine is the only way to set it up. Yes, I tried to use x360ce (never works for me).

Clearly, koku-xinput-wine is the definitive way to get gamepads working with WINE.

Other Stuff

That's all I've been able to test lately, but the BoilingSteam article MAKING THIRD-PARTY GAMEPADS WORK WITH STEAM GAMES and its Discussion on Reddit is worth checking out.

Last edited by dugan; 02-02-2017 at 04:15 PM.
 
Old 02-02-2017, 01:33 AM   #2
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 486

Rep: Reputation: 143Reputation: 143
Wow, you are the king Dugan! Thank you Sir!
 
Old 02-12-2017, 01:25 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,362

Original Poster
Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
Possibly relevant: my user is part of the "games" group, and I had the following udev rule active (it's part of what's needed to get a Steam Controller to work):

Code:
KERNEL=="uinput", MODE="0660", GROUP="games", OPTIONS+="static_node=uinput"
 
1 members found this post helpful.
Old 04-17-2017, 01:22 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,362

Original Poster
Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
Quote:
Code:
DRIVERS=="wiimote", GROUP="games", MODE:="0660"
Turns out, this also works for Switch Pro Controllers.
 
Old 04-17-2017, 01:57 AM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,595

Rep: Reputation: 931Reputation: 931Reputation: 931Reputation: 931Reputation: 931Reputation: 931Reputation: 931Reputation: 931
You might want to write it on Slackware Documentation Project
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Guide: Getting a Wii-U Pro Controller to work dugan Slackware 0 04-05-2016 03:45 AM
LXer: Howto Install latest wine with patched source and manage wine prefixes LXer Syndicated Linux News 0 12-07-2009 05:11 PM
Cannot install anything at all, including Wine or my computers drivers!!! Need Help!! jim1234 Linux - Newbie 5 06-06-2009 01:01 AM
LXer: Howto Install VirtualBox 1.6 in Ubuntu 8.04(Hardy Heron) including USB Support LXer Syndicated Linux News 0 07-27-2008 08:50 PM
got everything working with wine, including rise of nations!!!! Iron_Roses Linux - Software 7 04-17-2004 03:50 PM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration