bigRumble and smallRumble values were swapped

This commit is contained in:
Kristian Lauszus 2014-02-17 17:39:15 +01:00
parent fcd6eb5084
commit 37d59a63b2
3 changed files with 6 additions and 6 deletions

View file

@ -96,8 +96,8 @@ protected:
buf[2] = 0x80; buf[2] = 0x80;
buf[4]= 0xFF; buf[4]= 0xFF;
buf[7] = output->bigRumble; // Big Rumble buf[7] = output->smallRumble; // Small Rumble
buf[8] = output->smallRumble; // Small rumble buf[8] = output->bigRumble; // Big rumble
buf[9] = output->r; // Red buf[9] = output->r; // Red
buf[10] = output->g; // Green buf[10] = output->g; // Green

View file

@ -262,9 +262,9 @@ public:
*/ */
void setRumbleOn(RumbleEnum mode) { void setRumbleOn(RumbleEnum mode) {
if (mode == RumbleLow) if (mode == RumbleLow)
setRumbleOn(0xFF, 0x00);
else
setRumbleOn(0x00, 0xFF); setRumbleOn(0x00, 0xFF);
else
setRumbleOn(0xFF, 0x00);
}; };
/** /**

View file

@ -94,8 +94,8 @@ protected:
buf[0] = 0x05; // Report ID buf[0] = 0x05; // Report ID
buf[1]= 0xFF; buf[1]= 0xFF;
buf[4] = output->bigRumble; // Big Rumble buf[4] = output->smallRumble; // Small Rumble
buf[5] = output->smallRumble; // Small rumble buf[5] = output->bigRumble; // Big rumble
buf[6] = output->r; // Red buf[6] = output->r; // Red
buf[7] = output->g; // Green buf[7] = output->g; // Green