diff options
| author | skidau <skidau@gmail.com> | 2014-10-02 13:48:17 +1000 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2014-10-02 13:48:17 +1000 |
| commit | 68edddf10efbabe49f4a43e55fa4652aee800a45 (patch) | |
| tree | 375885ae0b3f05c9be206faa5079ec5c2f1b0628 /Source/Core | |
| parent | 50bf30111c7894800f6af6fe7a8c6c5cd3885952 (diff) | |
| parent | f7a993a85364a651554f7e6aa6b7b5d6eb9475cc (diff) | |
Merge pull request #1193 from RachelBryk/ir-input-display
Fix IR input display.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Movie.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/Core/Movie.cpp b/Source/Core/Core/Movie.cpp index 0f4f5d7c0c..6d7bf9f3b0 100644 --- a/Source/Core/Core/Movie.cpp +++ b/Source/Core/Core/Movie.cpp @@ -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); } |
