• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Controllers v
« Previous 1 ... 33 34 35 36 37 ... 315 Next »

DS4: analogue triggers in Linux
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
DS4: analogue triggers in Linux
12-25-2019, 09:21 PM
#1
amicose Offline
Junior Member
**
Posts: 14
Threads: 5
Joined: Feb 2018
So on Windows (and with DS4Windows), Dolphin recognises the Dualshock 4's analogue triggers perfectly, so Mario Sunshine works flawlessly.

I'm having problems on Ubuntu 18.04.3, however. I installed dolphin-emu-master (5.0-0268ef-dirty) and registered all the ds4 controls, but where on Windows the analogue triggers are captured properly, even a very slight press in Ubuntu seems to be recognised as digital - does anyone know how to solve this so Mario Sunshine works without workarounds?

I have noticed that the device input on Windows is xinput, and it's evdev on Ubuntu - could this be relevant?
Find
Reply
12-27-2019, 09:40 AM
#2
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,659
Threads: 8
Joined: Feb 2010
Evdev exposes the DS4 triggers as both a button and an axis. You can right click the mapping buttons for L,R,L-Analog,R-Analog and manually choose the analog version.

Alternatively you can every so slightly press your trigger before clicking the mapping button (so the digital input is ignored) then fully press your trigger after clicking the mapping button.
Find
Reply
12-27-2019, 06:28 PM
#3
amicose Offline
Junior Member
**
Posts: 14
Threads: 5
Joined: Feb 2018
Thanks!

(12-27-2019, 09:40 AM)Billiard26 Wrote: Alternatively you can every so slightly press your trigger before clicking the mapping button (so the digital input is ignored) then fully press your trigger after clicking the mapping button.

Just tried this - mapped the analog triggers first, and it worked! Then tried to map bottoming out on the same triggers as normal L/R. This worked in Windows (i.e. light press of R2 was then registered as analog R, bottoming out of R2 as normal R). But now, light press of R2 registers only as digital.

I'd prefer to avoid mapping analog/digital to two separate buttons. Are there alternative drivers on Linux that permit things to work as they do on Windows/original GCN controller?
Find
Reply
12-28-2019, 05:55 AM
#4
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,659
Threads: 8
Joined: Feb 2010
Did you try my first suggestion? Right click the mapping buttons and manually chose the analog version of your trigger.
Find
Reply
12-29-2019, 10:04 PM
#5
amicose Offline
Junior Member
**
Posts: 14
Threads: 5
Joined: Feb 2018
(12-28-2019, 05:55 AM)Billiard26 Wrote: Did you try my first suggestion? Right click the mapping buttons and manually chose the analog version of your trigger.

[Image: sQY6mIY.png]

I actually misread that the first time! Based on your suggestions, I found two ways of doing it.

First, with partially pressing the triggers before presing the mapping buttons in Dolphin. I tried that before, but this time was luckier - L and R have to register as Axis 2+/5+ as in the image above, and not as Button 6/7 (which is when a trigger press is registered as digital input, overruling any analogue input).

And then, once I'd worked that out, then there's an even easier way: as you said, just right-clicking the mapping button and selecting as follows:

L: Axis 2+
R: Axis 5+
L-Analog: Full Axis 2+
R-Analog: Full Axis 5+
Find
Reply
12-30-2019, 01:00 AM
#6
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,659
Threads: 8
Joined: Feb 2010
A more sensible configuration would have both L and L-Analog set to "Full Axis 2+" (and similarly for R).

This would make the "Threshold" setting behave in a reasonable manner.

But what you have will "work".
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode