Skip to content

MiCkSoftware/ShockEmu

 
 

Repository files navigation

macos-catalina macos-mojave

What's this program?

This program is useful if you want to use PS4 Remote Play with any gamepad / joystick.

Credits

All credits should go to https://github.com/daeken and https://github.com/suzukiplan/gamepad-osx.git If you are happy with my work you can pay me a beer: Donate

Setup

git clone https://github.com/MiCkSoftware/ShockEmu.git
cd ShockEmu
./build.sh gamepad.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.

The OS X Command Line Tools needs to be installed.

Key Mapping

only_keyboard.se goes like this:

Key Mapping

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 (example.se) for a breakdown of the format.

Joystick / Gamepad mapping

57 Hat switch 9 Select 10 Start 1 X 2 B 3 A 4 Y 5 L1 6 R1 7 L2 8 R2 11 T1 12 T2 13 btn5 48 L-1 Axis 49 L-2 Axis 50 R-1 Axis 53 R-2 Axis

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.

About

Keyboard / Mouse / Gamepad / Joystick support to Dualshock 4 emulation for PS4 Remote Play (macOS)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 59.3%
  • C 29.2%
  • Python 8.9%
  • Shell 2.2%
  • Makefile 0.4%