Hi guys,
I've whipped up a patch to enable dolphin to emulate wiimote forward/backwards (depth) movement without using a real wiimote or recordings. It works by toggling dolphin to emulate such movement using a button that can be configured via the wiimote plugin config. It simulates forward and backward movement using the IR pointer though, so it wouldn't work for games that require accelerometer-based forward/backward movement.
I've made this patch for the old wiimote plugin and it's built against rev 5576. I've only tested this patch with Trauma Team though, so it'd be great if anyone using this patch could test it with other games.
To use:
1. Go to the wiimote configuration dialog and click on Button Mapping. Assign a key to 'Toggle Key' in the 'Wiimote Depth' section. The default key is 'P'.
2. Start your game.
3. While ingame, press the toggle key to toggle the depth movement emulation on and off. Move your mouse cursor up to simulate a wiimote movement towards the screen; move it downwards to simulate a wiimote movement away from the screen. The faster you move your cursor, the faster the wiimote will move.
P.S. The toggle will only register if the render window is focused.
Thanks and do post if you have any queries!
Edit: Implemented this in the 12-byte IR report - untested though! Also did a bit more testing and found that depth movement works with with a linear increase in x2 as well, so I removed the old non-linear formula to maintain simplicity.
Edit 2: Check my post below for an updated patch.
I've whipped up a patch to enable dolphin to emulate wiimote forward/backwards (depth) movement without using a real wiimote or recordings. It works by toggling dolphin to emulate such movement using a button that can be configured via the wiimote plugin config. It simulates forward and backward movement using the IR pointer though, so it wouldn't work for games that require accelerometer-based forward/backward movement.
I've made this patch for the old wiimote plugin and it's built against rev 5576. I've only tested this patch with Trauma Team though, so it'd be great if anyone using this patch could test it with other games.
To use:
1. Go to the wiimote configuration dialog and click on Button Mapping. Assign a key to 'Toggle Key' in the 'Wiimote Depth' section. The default key is 'P'.
2. Start your game.
3. While ingame, press the toggle key to toggle the depth movement emulation on and off. Move your mouse cursor up to simulate a wiimote movement towards the screen; move it downwards to simulate a wiimote movement away from the screen. The faster you move your cursor, the faster the wiimote will move.
P.S. The toggle will only register if the render window is focused.
Thanks and do post if you have any queries!
Edit: Implemented this in the 12-byte IR report - untested though! Also did a bit more testing and found that depth movement works with with a linear increase in x2 as well, so I removed the old non-linear formula to maintain simplicity.
Edit 2: Check my post below for an updated patch.