diff options
| author | dapetcu21 <dapetcu21@gmail.com> | 2010-08-24 08:48:09 +0000 |
|---|---|---|
| committer | dapetcu21 <dapetcu21@gmail.com> | 2010-08-24 08:48:09 +0000 |
| commit | b7ecd01686fedb5a4c5b41aa833edeb98b7d85d9 (patch) | |
| tree | 26ed9fa9c0aaffe53aadeeb4592db5514bbb3b65 /Source/Core | |
| parent | cf5088c37e5cd486b031faa6fdfc4f4ff7b28082 (diff) | |
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
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/InputCommon/Src/UDPWiimote.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
