Simple application to emulate the Sony DualShock 4 gamepad using an Xbox controller or keyboard and mouse. This method is necessary for the fully work of the service Sony Playstation Plus or Playstation Remote Play. Works based on the driver ViGEm.
- Install ViGEmBus.
- Install Microsoft Visual C++ Redistributable 2017 or newer.
- Unpack and launch "DualShock4 emulator" (Attention! It is important to run DS4 emulator before starting PS Plus, if you are using an Xbox controller, so that PS Plus gives priority to the DualShock controller).
- Launch "PlayStation Plus", "PS Remote Play", "xCloud", or another application. Read the FAQ to set up xCloud.
- If necessary, you can invert the axis, change the
InvertX
andInvertY
parameters to1
in the "Config.ini" configuration file. - You can also check how the DualShock 4 controller emulation works in the VSCView program. To emulate from the keyboard and mouse, you also need to change the
ActivateInAnyWindow
parameter to1
and restart the program.
• The program crashes after launch
"Antivirus" blocks the dynamic loading of the Xbox gamepad library, so the program crashes. You can close it for the duration of use.
• Touchpad press don't work
It is possible that the "PS Plus" or "PS Remote Play" apps have given priority to the Xbox controller, so restart the "PS Plus" or "PS Remote Play" apps and the emulated DualShock 4 should take precedence over the Xbox controller.
• When playing in xCloud, in the browser, the context menu is called up on the right mouse button, how can I remove it in the browser?
First change the name of the window in the configuration file or change the ActivateInAnyWindow
parameter to 1
, restarting the program. Next, go to the xCloud website, press "F12", select the console and paste this code there, press run and the context menu will no longer be shown.
The "Back/View/Select" button (the first button to the right of the left stick) on the Xbox controller emulating pressing the touchpad on a Sony DualShock 4.
The "PS Share" button is binded to the simultaneous pressing of the "Back/View/Select" and "Start/Menu" buttons or to the "F12" key.
The "PS" button is binded to the "Xbox" button, but to use it, you need to disable the use of this button in the "Xbox Game Bar" settings. Also, the "PS" button is tied to the simultaneous pressing of the "Back/View/Select" and "LB" buttons (left bumper) or the "F2" key.
You can shake (gyro) the controller by pressing "Back/View/Select" and "RB" (right bumper).
If necessary, you can swap bumpers and triggers, as well as the "share" button and pressing the touchpad, to do this change the SwapTriggersShoulders
or SwapShareTouchPad
parameter to 1
in the "Config.ini" configuration file.
Changing the dead zone of sticks for drifting sticks is supported. Press "ALT" + "F9" to get the values, paste them into the "Config.ini" configuration file, into the DeadZone
parameters and restart the program.
Game | Action |
---|---|
Uncharted 3: Drake’s Deception (2011) | The "Share" button (F12) duplicates pressing the left side of the touchpad. |
The Last Of Us Part II (2020) | Options -> Accessibility -> "Strumming Settings" instead of vertical and horizontal, put buttons. |
On the Xbox gamepad, you need to press the "Back/View/Select" button (touchpad) and move the stick to the sides for swipes. By default, pressing the touchpad during swipes is disabled, it can be enabled in the configuration file by changing the TouchPadPressedWhenSwiping
parameter to 1
.
You can use swipes for the keyboard, the button codes are described below.
- Check Windows Firewall to see if incoming connections are allowed on your network type (private) and allow if disabled.
- Install FreePieIMU on your Android phone by taking the latest version in the OpenTrack archive or in the releases, enter the IP address of your computer, select "Send raw data", if not selected, select the data rate "Fastest" or "Fast".
- Reduce the sensitivity if necessary (the
Sens
parameter, in theMotion
section, where100
is 100% sensitivity) in configuration file. - Invert the axes if necessary (the parameters
InverseX
,InverseY
andInverseZ
, in theMotion
section, where1
is turning on the inversion, and0
is turning off).
If you just need to shake (gyro) the gamepad in the game, then there is no need to install Android applications, just press the "shake" button of the gamepad.
By default, the mouse and keyboard only work in the windows "PlayStation Plus" and "PS4 Remote Play" (change the ActivateOnlyInWindow2
parameter to your regional application title). To work only in any other applications or emulators, change the parameters ActivateOnlyInWindow
and ActivateOnlyInWindow2
to the headers of these applications You can enable the work in all windows (change the ActivateInAnyWindow
parameter to 1
, in the "Config.ini" configuration file) or change the name of the window (the ActivateOnlyInWindow
parameter) in which the actions are captured. This is necessary so that the cursor is centered only in one window and no buttons are pressed when the window is minimized.
To disable cursor centering, hold down the "C" button (can change it in the config - StopСenteringKey
).
To hide the cursor after startup, change HideCursorAfterStart
to 1
, to restore the cursor, close the program by pressing "ALT" + "ESCAPE" or "~".
For full-screen Playstation Plus use the keys "ALT" + "F10", the upper black bar, as well as the taskbar will be hidden. To return to the normal window, press these keys again. You can disable hiding the taskbar in the configuration file by changing the HideTaskBarInFullScreen
parameter to 0
. If the Playstation Plus window changes once, you can change the default top offset, the FullScreenTopOffset
parameter.
DualShock 4 | Keyboard and mouse |
---|---|
L1 | Control |
R1 | Alt |
L2 | Right mouse button |
R2 | Left mouse button |
SHARE | F12 |
TOUCHPAD (pressing) | Enter |
OPTIONS | Tab |
DPAD UP | 1 |
DPAD LEFT | 2 |
DPAD RIGHT | 3 |
DPAD DOWN | 4 |
TRIANGLE | Q |
SQUARE | E |
CIRCLE | R |
CROSS | Space |
L3 (pressing the stick) | Shift |
R3 (pressing the stick) | Middle mouse button |
Touchpad swipe up, down, left, right | 7, 8, 9, 0 |
Touchpad up, center, left, right, down | U, J, H, K, N |
Shake the gamepad | T |
PS | F2 |
Сan replace button bindings in the "Config.ini" configuration file. Button codes can be found here.
The sensitivity parameters SensX
, SensY
for the mouse can also be found in the configuration file "Config.ini", in the section "Mouse". If there is no stick movement, you can try increasing the "SleepTimeOut" parameter to 2, 4, 8, 10.
You can also enable emulation of analog triggers (L2, R2), change the EmulateAnalogTriggers
parameter to 1
, and increase step AnalogTriggerStep
(from 0.1 to 255).
Version for Windows 10.
Fork with support for reading gyroscope data from Nintendo Joy-Con - More detailed.
r57zone[at]gmail.com