[GH-ISSUE #1247] DualSense, DualShock 4 correct implementation & keyboard blocking does not work on this controllers #398

Closed
opened 2026-02-27 21:06:06 +03:00 by kerem · 8 comments
Owner

Originally created by @par274 on GitHub (Oct 5, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1247

I have controllers for all 4 main consoles, including the Switch controller, so I performed the tests.

I'm aware the emulator is in a very early stage but I think there should be a reported issue open. In this way, it can reach more developers.

The first problem is related to the DualSense and DualShock 4 integration. These controllers work in the emulator, but they act like Xbox controllers, so features such as Gyro and TouchPad that are required in some games do not work. For example, Gesture and shortcut menus do not open in Bloodborne.

The other issue is more of a bug.

https://github.com/shadps4-emu/shadPS4/pull/1237

Here it hides the mouse cursor when using a controller. While it hides the cursor on the Xbox controller, it does not hide it on the DualSense and DualShock 4 controllers. But this does not always happen.

Originally created by @par274 on GitHub (Oct 5, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/1247 I have controllers for all 4 main consoles, including the Switch controller, so I performed the tests. I'm aware the emulator is in a very early stage but I think there should be a reported issue open. In this way, it can reach more developers. The first problem is related to the DualSense and DualShock 4 integration. These controllers work in the emulator, but they act like Xbox controllers, so features such as Gyro and TouchPad that are required in some games do not work. For example, Gesture and shortcut menus do not open in Bloodborne. The other issue is more of a bug. https://github.com/shadps4-emu/shadPS4/pull/1237 Here it hides the mouse cursor when using a controller. While it hides the cursor on the Xbox controller, it does not hide it on the DualSense and DualShock 4 controllers. But this does not always happen.
kerem closed this issue 2026-02-27 21:06:07 +03:00
Author
Owner

@fireph commented on GitHub (Oct 6, 2024):

touchpad support is being added in https://github.com/shadps4-emu/shadPS4/pull/1257

<!-- gh-comment-id:2395342088 --> @fireph commented on GitHub (Oct 6, 2024): touchpad support is being added in https://github.com/shadps4-emu/shadPS4/pull/1257
Author
Owner

@tGecko commented on GitHub (Oct 6, 2024):

Here it hides the mouse cursor when using a controller. While it hides the cursor on the Xbox controller, it does not hide it on the DualSense and DualShock 4 controllers.

DualSense doesn't work at all for me, but DS4 works fine, including hiding the cursor. Maybe you have some sort of software interfering (DS4Windows, Steam)?

<!-- gh-comment-id:2395351264 --> @tGecko commented on GitHub (Oct 6, 2024): > Here it hides the mouse cursor when using a controller. While it hides the cursor on the Xbox controller, it does not hide it on the DualSense and DualShock 4 controllers. DualSense doesn't work at all for me, but DS4 works fine, including hiding the cursor. Maybe you have some sort of software interfering (DS4Windows, Steam)?
Author
Owner

@fireph commented on GitHub (Oct 6, 2024):

dualsense works fine with no extra software, just plugged in via a USB cable

<!-- gh-comment-id:2395355538 --> @fireph commented on GitHub (Oct 6, 2024): dualsense works fine with no extra software, just plugged in via a USB cable
Author
Owner

@tGecko commented on GitHub (Oct 6, 2024):

Oh after restarting it works. Cursor hiding works on DualSense as well for me 🤔 Under what conditions does it not work for you?

Edit:
Retested and cursor hide confirmed working on:
DS4
DualSense
Xbox Elite 2
Xbox one
Switch Pro
Nacon DS4-like
8BITDO SF30 Pro

Cursor hide works on all these. There is no reason it shouldn't, unless something is moving the mouse.

<!-- gh-comment-id:2395366713 --> @tGecko commented on GitHub (Oct 6, 2024): Oh after restarting it works. Cursor hiding works on DualSense as well for me 🤔 Under what conditions does it not work for you? Edit: Retested and cursor hide confirmed working on: DS4 DualSense Xbox Elite 2 Xbox one Switch Pro Nacon DS4-like 8BITDO SF30 Pro Cursor hide works on all these. There is no reason it shouldn't, unless something is moving the mouse.
Author
Owner

@par274 commented on GitHub (Oct 6, 2024):

touchpad support is being added in #1257

Thank you. I tried it on all 4 controllers and it hides the cursor. And TouchPad working properly.

But I discovered a bug, for example in Bloodborne, the shortcut is opened with the right side of the TouchPad and the gesture menu is opened with the left side. I downloaded build #1258 but sometimes even if you click on the left side of the TouchPad, it clicks on the right side.

Other than that, everything works perfectly. If you want to go over it, I think you can bring a screenshot with the Share button. And gyro.

Ekran görüntüsü 2024-10-06 141251
Ekran görüntüsü 2024-10-06 141345

<!-- gh-comment-id:2395399173 --> @par274 commented on GitHub (Oct 6, 2024): > touchpad support is being added in #1257 Thank you. I tried it on all 4 controllers and it hides the cursor. And TouchPad working properly. But I discovered a bug, for example in Bloodborne, the shortcut is opened with the right side of the TouchPad and the gesture menu is opened with the left side. I downloaded build #1258 but sometimes even if you click on the left side of the TouchPad, it clicks on the right side. Other than that, everything works perfectly. If you want to go over it, I think you can bring a screenshot with the Share button. And gyro. ![Ekran görüntüsü 2024-10-06 141251](https://github.com/user-attachments/assets/8fcde62b-eca7-43ff-9cc3-d2ca5edd39c8) ![Ekran görüntüsü 2024-10-06 141345](https://github.com/user-attachments/assets/7c804894-cbb1-4caf-a461-08b8ee2527f2)
Author
Owner

@fireph commented on GitHub (Oct 6, 2024):

@par274 this is known bug in the SDL library that is used for the controller. It will likely automatically get fixed when https://github.com/libsdl-org/SDL/issues/11085 gets fixed. To avoid it, touch the touchpad and then click it.

<!-- gh-comment-id:2395402260 --> @fireph commented on GitHub (Oct 6, 2024): @par274 this is known bug in the SDL library that is used for the controller. It will likely automatically get fixed when https://github.com/libsdl-org/SDL/issues/11085 gets fixed. To avoid it, touch the touchpad and then click it.
Author
Owner

@par274 commented on GitHub (Oct 6, 2024):

@par274 this is known bug in the SDL library that is used for the controller. It will likely automatically get fixed when libsdl-org/SDL#11085 gets fixed. To avoid it, touch the touchpad and then click it.

Yes, I just read your comment that this problem is related to SDL. I think the same problem has been going on in SDL for years because I was experiencing it in PSNow from time to time.

<!-- gh-comment-id:2395404670 --> @par274 commented on GitHub (Oct 6, 2024): > @par274 this is known bug in the SDL library that is used for the controller. It will likely automatically get fixed when [libsdl-org/SDL#11085](https://github.com/libsdl-org/SDL/issues/11085) gets fixed. To avoid it, touch the touchpad and then click it. Yes, I just read your comment that this problem is related to SDL. I think the same problem has been going on in SDL for years because I was experiencing it in PSNow from time to time.
Author
Owner

@par274 commented on GitHub (Oct 7, 2024):

updated sdl to fix touchpad issue (#1275)

All problems seem to be fixed. I'm closing the issue.

<!-- gh-comment-id:2396656640 --> @par274 commented on GitHub (Oct 7, 2024): updated sdl to fix touchpad issue (#1275) All problems seem to be fixed. I'm closing the issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#398
No description provided.