igor725 / input_ps4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PS4 Input

This application allows you to test your PS4 gamepads (or your input system implementation if you are making an PS4 emulator). It's based on OpenOrbis Input Sample, original project can be found here.

New features

  • Left and right stick position tracking
  • Mulitple users support (Press Options button on the gamepad to activate it)
  • Haptic feedback on L2/R2 trigger press for active gamepad
  • Switching the lightbar color by pressing Triangle for active gamepad
  • Pad speaker playing some sound by pressing Cross for active gamepad
  • TouchPad reading for active gamepad

Libraries used

  • libc
  • libkernel
  • libc++
  • libSceVideoOut
  • libSceAudioOut
  • libScePad
  • libSceUserService

Building

Warning

Neither batch nor make script will successfully build this project with the latest OpenOrbis release (v0.5.2), you should apply libScePad header patches from the padpatch directory!

To build this project, the developer will need clang, which is provided in the toolchain. The OO_PS4_TOOLCHAIN environment variable will also need to be set to the root directory of the SDK installation.

Windows Run the batch file from command prompt or powershell with the following command:

.\build.bat .\x64\Debug

Linux Run the makefile.

make

Author(s)

  • Specter
  • igor725 (improved it a bit)

About

License:GNU General Public License v3.0


Languages

Language:C++ 66.9%Language:C 15.3%Language:Batchfile 9.7%Language:Makefile 8.1%