mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-04 13:17:49 -05:00
Files pulled in manually and code style changes, Gamepad type addition by Adam Honse <calcprogrammer1@gmail.com>
28 lines
867 B
C++
28 lines
867 B
C++
/*-----------------------------------------*\
|
|
| SonyDS4Controller.h |
|
|
| |
|
|
| Controller for Sony Dualshock 4 |
|
|
| |
|
|
| Pol Rius (alpemwarrior) 24/09/2020 |
|
|
\*-----------------------------------------*/
|
|
|
|
#include <hidapi/hidapi.h>
|
|
|
|
class SonyDS4Controller
|
|
{
|
|
public:
|
|
SonyDS4Controller(hid_device * device_handle, const char * device_path);
|
|
|
|
const char* GetLocation();
|
|
|
|
void SetColors(unsigned char red, unsigned char green, unsigned char blue);
|
|
|
|
private:
|
|
hid_device* device_handle;
|
|
bool is_bluetooth = false;
|
|
const char* location;
|
|
|
|
void sendReportUSB(unsigned char red, unsigned char green, unsigned char blue);
|
|
void sendReportBT(unsigned char red, unsigned char green, unsigned char blue);
|
|
};
|