Skip to content

Conversation

@josephduchesne
Copy link

@josephduchesne josephduchesne commented Nov 25, 2020

Added initial support for PS5 controllers by creating a combination of the PS4 controller class and Ludwig Füchsl's DualSense Windows driver https://github.com/Ohjurot/DualSense-Windows

This supports all of the feature's that @Ohjurot supported in his driver, including 3 different haptic modes.

Since the force feedback in the triggers is pretty complicated, I used the DualSense Windows functions and datastructures with minimual modification, which is why the PS5Trigger.h and PS5Trigger.cpp files retain their source license and copyright (MIT license). I don't believe that this is a problem given that the explicitly copied code sections are all properly licensed and attributed as far as I can tell.

I have only included the USB class, however it should be relatively straight forward to create a Bluetooth version. I just don't have a great hardware setup for that, and my use case prefers USB.

Added initial support for PS5 controllers by creating a combination of the PS4 controller class and Ludwig Füchsl's DualSense Windows driver https://github.com/Ohjurot/DualSense-Windows
@Ohjurot
Copy link

Ohjurot commented Nov 26, 2020

@josephduchesne Nice to see that! From my side the comments with the attribution and license in the source code is totally fine for this project.

uint8_t battery : 4;
uint8_t dummy3 : 1;
uint8_t battery_full : 1;
uint8_t dummy4 : 2;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think this is correct. These are all 0's on my controller except for the 1st bit, which seems to be used for the microphone. I do not know about the battery_full bit though, as I'm not sure if my controller is fully charged or not.

Copy link

@Lauszus Lauszus Jan 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josephduchesne what is your take on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants