[PR #3842] [MERGED] Add basic mouse-to-touchpad emulation #3751

Closed
opened 2026-02-27 22:04:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3842
Author: @kalaposfos13
Created: 11/30/2025
Status: Merged
Merged: 12/2/2025
Merged by: @georgemoralis

Base: mainHead: mouse-to-touchpad


📝 Commits (1)

  • 3d3aff5 Add basic mouse-to-touchpad emulation

📊 Changes

6 files changed (+35 additions, -5 deletions)

View changed files

📝 src/common/config.cpp (+1 -0)
📝 src/input/input_handler.cpp (+4 -0)
📝 src/input/input_handler.h (+7 -4)
📝 src/input/input_mouse.cpp (+17 -1)
📝 src/input/input_mouse.h (+1 -0)
📝 src/sdl_window.cpp (+5 -0)

📄 Description

A lot of people have requested this, so here you go. It doesn't not work, but it is not very complex or robust either. The usage is that the emulator window's screen is transformed to the touchpad's input area, and a left click counts as touching the touchpad, while a right click counts as pressing it too. This is enough for simpler inputs like a swipe, and if you ever come across a situation where even this isn't enough, like an input requiring two fingers, then MAYBE CONSIDER USING A FUCKING CONTROLLER INSTEAD. The default hotkey for toggling it is delete, and there are no checks for whether you also have mouse keys bound to something else, so if you do, then that will result in both that and the touchpad being activated.

https://github.com/user-attachments/assets/72df932e-3c9e-4d5c-9922-4ed056e8100a


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/3842 **Author:** [@kalaposfos13](https://github.com/kalaposfos13) **Created:** 11/30/2025 **Status:** ✅ Merged **Merged:** 12/2/2025 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `mouse-to-touchpad` --- ### 📝 Commits (1) - [`3d3aff5`](https://github.com/shadps4-emu/shadPS4/commit/3d3aff5bfb74bf84032d279ee9878b77763a3f14) Add basic mouse-to-touchpad emulation ### 📊 Changes **6 files changed** (+35 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/common/config.cpp` (+1 -0) 📝 `src/input/input_handler.cpp` (+4 -0) 📝 `src/input/input_handler.h` (+7 -4) 📝 `src/input/input_mouse.cpp` (+17 -1) 📝 `src/input/input_mouse.h` (+1 -0) 📝 `src/sdl_window.cpp` (+5 -0) </details> ### 📄 Description A lot of people have requested this, so here you go. It doesn't not work, but it is not very complex or robust either. The usage is that the emulator window's screen is transformed to the touchpad's input area, and a left click counts as touching the touchpad, while a right click counts as pressing it too. This is enough for simpler inputs like a swipe, and if you ever come across a situation where even this isn't enough, like an input requiring two fingers, then MAYBE CONSIDER USING A FUCKING CONTROLLER INSTEAD. The default hotkey for toggling it is delete, and there are no checks for whether you also have mouse keys bound to something else, so if you do, then that will result in both that and the touchpad being activated. https://github.com/user-attachments/assets/72df932e-3c9e-4d5c-9922-4ed056e8100a --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:04:51 +03:00
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#3751
No description provided.