Giter Site home page Giter Site logo

shockemu's Introduction

macos-bigsur

Key Mapping

only_keyboard.se goes like this:

Key Mapping

Requirements

Setup

./build.sh only_keyboard.se
./run.sh

SE File Format

SE files are, generally speaking, a mapping between an input key to a DualShock input. See the only_keyboard.se file for a breakdown of the format.

How It Works

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

Pro Tips

Launch from Terminal

The alias below allows for typing play / enter anywhere in Terminal and have RemotePlay.app launched with the above keys mapped:

$ cat ~/.zshrc | grep play
alias play="pushd [REPOSITORY_ROOT]; ./run.sh &; popd"

Launch from Terminal + Key Mapping Image

Have Preview opening the key mapping image for you and RemotePlay.app launched:

Key Mapping + Remote Play

Save this script somewhere (e.g.: [SCRIPT_DIR]/play.sh)

#!/bin/bash

SHOCK_EMU=$'[REPOSITORY_ROOT]'

open -a Preview $SHOCK_EMU/Images/KeyMapping.png

pushd $SHOCK_EMU
./run.sh &
popd

chmod a+x it and create an alias that looks like this:

$ cat ~/.zshrc | grep play
alias play=[SCRIPT_DIR]/play.sh

Enjoy! ๐ŸŽฎ

shockemu's People

Contributors

certaindaniel avatar daeken avatar maephisto666 avatar willoftw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.