mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3842] [MERGED] Add basic mouse-to-touchpad emulation #3751
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3751
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:mouse-to-touchpad📝 Commits (1)
3d3aff5Add 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.