From f7a993a85364a651554f7e6aa6b7b5d6eb9475cc Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Tue, 30 Sep 2014 08:24:18 -0400 Subject: [PATCH] Fix IR input display. --- Source/Core/Core/Movie.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index a06a7ca25b9d..8e413b280456 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -620,9 +620,11 @@ static void SetWiiInputDisplayString(int remoteID, u8* const coreData, u8* const 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); }