Skip to content

Commit

Permalink
Merge pull request #3 from backslash-f/master
Browse files Browse the repository at this point in the history
Trying to merge into one repo as they have the same functionality
  • Loading branch information
willoftw authored Jan 19, 2021
2 parents 6005383 + f0a4f30 commit 59f909a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ It depends on your system having [PS4 Remote Play](https://remoteplay.dl.playsta

The `OS X Command Line Tools` needs [to be installed](https://stackoverflow.com/a/53078282/584548).

Relies on `python2` (see #2), which can be installed via `brew install python@2`

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

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

# But It Is Not Working!
You may have to [turn off System Integrity Protection via 'csrutil'](https://www.imore.com/how-turn-system-integrity-protection-macos) in order for `DYLD_INSERT_LIBRARIES` to function on the newest macOS. Thanks [Ben](https://github.com/benh57) for figuring this out!

# Pro Tip
The `alias` below allows for typing `play` / `enter` anywhere in `Terminal` and have `RemotePlay.app` launched with the above keys mapped:
```
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

python shockemu.py $1
python2 shockemu.py $1
clang -dynamiclib -std=gnu99 iohid_wrap.m -current_version 1.0 -compatibility_version 1.0 -lobjc -framework Foundation -framework AppKit -framework CoreFoundation -o iohid_wrap.dylib

0 comments on commit 59f909a

Please sign in to comment.