Join Us and become a Member for a Verified Badge to access private areas with the latest PS4 PKGs.
PS4 CFW and Hacks       Thread starter PSXHAX       Start date Nov 20, 2016 at 12:53 AM       4      
Status
Not open for further replies.
Recently we reported on a C Library for PlayStation VR called LibPSVR, and today PlayStation 4 developer j0lama left word that he's currently working on DS4Lib 0.5, which is a Linux Library written to control the DualShock 4 (DS4) PS4 controller through USB. :)

Download: DS4Lib-master.zip / DS4Lib GIT

To quote from the README.md: DS4Lib 0.5

Introduction

This is a simple Linux library written to control the Dualshock 4 through USB.

This library read the data from a temporal file created in /dev/input/ when you plug the DS4.

Funtions

All functions are in ds4.h.

Include this file to your project to can use DS4Lib.

Functions
  • DS4_CONTROLLER * ini_DS4();
  • int free_DS4(DS4_CONTROLLER * ds4);
  • int button_pressed(DS4_CONTROLLER * ds4, int Button);
  • int ds4_update_status(DS4_CONTROLLER * ds4, char * data);
  • int ds4_print_status(DS4_CONTROLLER * ds4);
This version

DS4Lib 0.5 supports all buttons except Joysticks positions and touchPAD tracking.

In future versions DS4Lib will include tracking of Joysticks and touchPAD and gyroscope/accelerometer values in real time.

Changelog

DS4Lib 0.5: Initial release.
  • Tracking of all buttons.
Greetz to @j0lama for taking the time to let us know about your latest project here! :love:
DS4Lib 0.5 Linux Library to Control DualShock 4 via USB by J0lama.jpg
 

Comments

Status
Not open for further replies.
Back
Top