From b7ecd01686fedb5a4c5b41aa833edeb98b7d85d9 Mon Sep 17 00:00:00 2001 From: dapetcu21 Date: Tue, 24 Aug 2010 08:48:09 +0000 Subject: 9/10-bit accelerometer data interleaved with buttons some useless IR pointer math... It still doesn't make rotation work a sign fix when tilting along y axis (twisting the wiimote) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6121 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/InputCommon/Src/UDPWiimote.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/InputCommon') diff --git a/Source/Core/InputCommon/Src/UDPWiimote.cpp b/Source/Core/InputCommon/Src/UDPWiimote.cpp index 311e86fb63..f0e92e67ed 100644 --- a/Source/Core/InputCommon/Src/UDPWiimote.cpp +++ b/Source/Core/InputCommon/Src/UDPWiimote.cpp @@ -68,8 +68,8 @@ THREAD_RETURN UDPWiiThread(void* arg) UDPWiimote::UDPWiimote(const char *_port, const char * name, int _index) : port(_port), displayName(name), - d(new _d) ,x(0),y(0),z(0),naX(0),naY(0),naZ(0),nunX(0),nunY(0), - pointerX(-0.1),pointerY(-0.1),nunMask(0),mask(0),index(_index), int_port(atoi(_port)) + d(new _d) ,x(0),y(0),z(1.0f),naX(0),naY(0),naZ(-1.0f),nunX(0),nunY(0), + pointerX(1001.0f/2),pointerY(0),nunMask(0),mask(0),index(_index), int_port(atoi(_port)) { static bool sranded=false; -- cgit v1.2.3