DualShock4 Emulator Save

DualShock4 emulation for Xbox controllers or keyboard and mouse / Эмуляция DualShock4 для Xbox контроллеров или клавиатуры и мыши

Project README

EN RU FR ← Choose language | Выберите язык

DualShock4 emulator

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.

Setup

  1. Install ViGEmBus.
  2. Install Microsoft Visual C++ Redistributable 2017 or newer.
  3. 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).
  4. Launch "PlayStation Plus", "PS Remote Play", "xCloud", or another application. Read the FAQ to set up xCloud.
  5. If necessary, you can invert the axis, change the InvertX and InvertY parameters to 1 in the "Config.ini" configuration file.
  6. 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 to 1 and restart the program.

FAQ

• 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 game sees 2 controllers at the same time (DualSense / DualShock 4 / Nintendo Pro controller or JoyCons and Xbox)
You can hide your gamepad using the HidHide program.

Xbox controller

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 "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).

You can rotate the gamepad (gyroscope) by pressing Back and the DPAD ←↑↓→ (you can change the combinations in the configuration file).

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.

Touchpad

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.

Gyroscope

  1. Check Windows Firewall to see if incoming connections are allowed on your network type (private) and allow if disabled.
  2. 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".
  3. Reduce the general sensitivity if necessary (the Sens parameter, in the Motion section, where 100 is 100% sensitivity) in configuration file.
  4. Reduce individual sensor sensitivity if necessary (the AccelSens and GyroSense, in the Motion section, where 100 is 100% sensitivity) in configuration file.
  5. Invert the axes if necessary (the parameters InverseX, InverseY and InverseZ, in the Motion section, where 1 is turning on the inversion, and 0 is turning off).
  6. Change phone orientation (the parameter Orientation, in the Motion section. where 1 is landscape and 0 is portrait).

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.

Keyboard and mouse

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 Alt
R1 Control
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 E
SQUARE R
CIRCLE Q
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
Rotate gamepad forward, backward, right, left (gyroscope) Numpad 8, 2, 4, 6
PS F2

In the profile configuration file, in the "Profiles" folder, you can change the button bindings or create a new one based on Default.ini. Button names can be found here. You can choose from standard profiles. Send more convenient bindings for a variety of games.

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).

Download

Version for Windows 10.

Download

Feedback

r57zone[at]gmail.com

Open Source Agenda is not affiliated with "DualShock4 Emulator" Project. README Source: r57zone/DualShock4-emulator

Open Source Agenda Badge

Open Source Agenda Rating