Closed Ryochan7 closed 1 year ago
Double checked it. It is just slightly different math but the outcome is still the same. Based on the example and the frequency table, it looks like the example swaps the byte order for HF before placing the bytes in the byte array. The DS4Windows code uses the hex value as written in the table and then changes when the bit shifts take place. I think I am going to keep the operations as they are.
Besides adding comments in that code, need to change the value used for LF. It is not correct for 320 Hz but I might change the frequency used anyway.
Increased the max amplitude used for Switch Pro rumble. The Switch Pro rumble seemed like it was a bit too quiet although the same amplitude felt fine for the smaller JoyCon. Now that this issue has been looked into, it is probably safe to close this issue.
When I made my initial implementation, I think I might have messed up with a bit shift in the rumble frequency conversion. Although, I am wanting to think I might have changed a step intentionally compared to the steps used in the official reverse engineering docs and BetterJoy code. Too bad I have no comment docs to tell me what I was thinking then. Been busy messing with other tasks so I have not gotten around to it. Personally, I really like the way it feels currently especially when it comes to the JoyCon controllers.