Binding DualShock 4 button to AppleScript? I setup a dualshock 4 (PS4) controller to work with my Mac Mini for XBMC, which can play games on emulators like SNES9x. The issue I'm having though, is that when I want to quit the game/emulator that I'm playing, it requires a mouse and a keyboard. So what I would like to do ideally, is take an applescript that I have, which terminates the current emulator and bind it to the "PlayStation" button on the controller so when I'm ready, I can quit the current game without having to use a mouse and keyboard. At the same time, it's necessary that every other button on the controller can continue to be mapped normally to buttons in the emulator.
Whilst I don't have a PS4 controller to test this on, you should be able to use Keyboard Maestro's Device Key action to run AppleScript or any other action.