mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
bigRumble and smallRumble values were swapped
This commit is contained in:
parent
fcd6eb5084
commit
37d59a63b2
3 changed files with 6 additions and 6 deletions
4
PS4BT.h
4
PS4BT.h
|
@ -96,8 +96,8 @@ protected:
|
|||
buf[2] = 0x80;
|
||||
buf[4]= 0xFF;
|
||||
|
||||
buf[7] = output->bigRumble; // Big Rumble
|
||||
buf[8] = output->smallRumble; // Small rumble
|
||||
buf[7] = output->smallRumble; // Small Rumble
|
||||
buf[8] = output->bigRumble; // Big rumble
|
||||
|
||||
buf[9] = output->r; // Red
|
||||
buf[10] = output->g; // Green
|
||||
|
|
|
@ -262,9 +262,9 @@ public:
|
|||
*/
|
||||
void setRumbleOn(RumbleEnum mode) {
|
||||
if (mode == RumbleLow)
|
||||
setRumbleOn(0xFF, 0x00);
|
||||
else
|
||||
setRumbleOn(0x00, 0xFF);
|
||||
else
|
||||
setRumbleOn(0xFF, 0x00);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
4
PS4USB.h
4
PS4USB.h
|
@ -94,8 +94,8 @@ protected:
|
|||
buf[0] = 0x05; // Report ID
|
||||
buf[1]= 0xFF;
|
||||
|
||||
buf[4] = output->bigRumble; // Big Rumble
|
||||
buf[5] = output->smallRumble; // Small rumble
|
||||
buf[4] = output->smallRumble; // Small Rumble
|
||||
buf[5] = output->bigRumble; // Big rumble
|
||||
|
||||
buf[6] = output->r; // Red
|
||||
buf[7] = output->g; // Green
|
||||
|
|
Loading…
Reference in a new issue