We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3838 - Dualshock 4 is detected as non-haptic
Summary: Dualshock 4 is detected as non-haptic
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: haptic (show other bugs)
Version: 2.0.5
Hardware: x86 Windows 10
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-21 10:18 UTC by morgoth-baeglir
Modified: 2021-01-15 13:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description morgoth-baeglir 2017-09-21 10:18:54 UTC
SDL2.0.5 detects Dualshock4 gamepad but considers it as non-haptic. Therefore I am not able to use rumble for this controller. Xbox gamepad works just fine.

Gamecontrollerdb:
4c05cc09000000000000504944564944,Sony DualShock 4,a:b1,b:b2,y:b3,x:b0,start:b9,guide:b12,back:b13,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,platform:Windows,

Testjoystick output:

INFO: There are 1 joysticks attached
INFO: Joystick 0: Wireless Controller
'testjoystick.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
INFO:        axes: 6
INFO:       balls: 0
INFO:        hats: 1
INFO:     buttons: 14
INFO: instance id: 0
INFO:        guid: 4c05cc09000000000000504944564944



Testrumble output with connected Dualshock4:

INFO: 0 Haptic devices detected.
ERROR: No Haptic devices found!
Comment 1 Dimitriy Ryazantcev 2021-01-15 13:15:34 UTC
You can use https://wiki.libsdl.org/CategoryGameController API and its SDL_GameControllerRumble() for PS4/PS5 controllers