mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Gecko codes: Added parenthesis where they were needed.(thanks to glennrics and soren) Fixed a copy paste error with write & fill 8bit codes. Also forgot to remove a return false;.(some more codes should work (fixed issue 2968)) New Wiimote Plugin: Added emulated swinging.(seems to work) Changed the emulated calibration data to some nice values. ControllerInterface: moved and constified some stuff.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5980 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -211,11 +211,10 @@ void Wiimote_Update(int _number)
|
||||
g_plugin.controls_crit.Enter();
|
||||
|
||||
static int _last_number = 4;
|
||||
if ( _number <= _last_number && g_plugin.interface_crit.TryEnter() )
|
||||
if (_number <= _last_number)
|
||||
{
|
||||
g_plugin.controller_interface.UpdateOutput();
|
||||
g_plugin.controller_interface.UpdateInput();
|
||||
g_plugin.interface_crit.Leave();
|
||||
}
|
||||
_last_number = _number;
|
||||
|
||||
@ -225,7 +224,7 @@ void Wiimote_Update(int _number)
|
||||
WiimoteReal::Update(_number);
|
||||
break;
|
||||
case WIIMOTE_SRC_EMU :
|
||||
((WiimoteEmu::Wiimote*)g_plugin.controllers[ _number ])->Update();
|
||||
((WiimoteEmu::Wiimote*)g_plugin.controllers[_number])->Update();
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user