summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorayuanx <ayuanx@gmail.com>2009-11-28 18:00:07 +0000
committerayuanx <ayuanx@gmail.com>2009-11-28 18:00:07 +0000
commitff23c027953f3c73c60684ea97078b18ef0993d1 (patch)
treeea327d6e73cec31052732552ecc28d445c37e636 /Source/Core
parent0f7b1a2f95959ac4131849049d0b746211173880 (diff)
Now "Wiimote/Nunchunk Shake" on Keyboard works(for Win only).
Just press the "Shake" key. The shake involves all the three axes: X, Y, Z. So when you press the shake key, you are actually shaking not only up-down, left-right, and forward-backward at the same time. I did this becuse different games may require different directional shake, no need to seperate them to 3 keys I think. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4624 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_Error.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_Error.h b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_Error.h
index 1da68376b1..3fc2f97234 100644
--- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_Error.h
+++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_Error.h
@@ -34,11 +34,17 @@ public:
virtual bool Open(u32 _CommandAddress, u32 _Mode)
{
//PanicAlert("CWII_IPC_HLE_Device_Error");
- //Memory::Write_U32(GetDeviceID(), _CommandAddress+4);
- Memory::Write_U32(0, _CommandAddress+4);
+ Memory::Write_U32(GetDeviceID(), _CommandAddress + 4);
m_Active = true;
return true;
}
+
+ virtual bool Close(u32 _CommandAddress)
+ {
+ Memory::Write_U32(0, _CommandAddress + 4);
+ m_Active = false;
+ return true;
+ }
};
#endif