Skip to content

Commit

Permalink
Merge pull request #1193 from RachelBryk/ir-input-display
Browse files Browse the repository at this point in the history
Fix IR input display.
  • Loading branch information
skidau committed Oct 2, 2014
2 parents 50bf301 + f7a993a commit 68edddf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Core/Core/Movie.cpp
Expand Up @@ -628,9 +628,11 @@ static void SetWiiInputDisplayString(int remoteID, u8* const data, const Wiimote
s_InputDisplay[controllerID].append(accel);
}

if (irData) // incomplete
if (irData)
{
std::string ir = StringFromFormat(" IR:%d,%d", ((u8*)irData)[0], ((u8*)irData)[1]);
u16 x = irData[0] | ((irData[2] >> 4 & 0x3) << 8);
u16 y = irData[1] | ((irData[2] >> 2 & 0x3) << 8);
std::string ir = StringFromFormat(" IR:%d,%d", x, y);
s_InputDisplay[controllerID].append(ir);
}

Expand Down

0 comments on commit 68edddf

Please sign in to comment.