/ShockEmu

Keyboard+Mouse to Dualshock 4 emulation for PS4 Remote Play (OS X)

Primary LanguageObjective-C

Setup

ShockEmu requires the OS X command line development tools to be installed. Installation steps:

git clone https://github.com/daeken/ShockEmu.git
./build.sh <filename>.se
./run.sh

It depends on your system having PS4 Remote Play installed at /Applications/RemotePlay.app. If this is not the case, you'll need to modify run.sh accordingly.

SE file format

SE files are, generally speaking, a mapping between an input key, mouse button, or mouse movement to a DualShock 4 input. See the example file (nomanssky.se) for a breakdown of the format.

How it works

ShockEmu works by intercepting the IOHID calls of PS4 Remote Play application and presents an emulated DualShock controller. It also hooks into the input routines of the application, to catch keyboard and mouse inputs, which then get mapped according to your SE file.