mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Emulated Wiimote: Added the pitch left and pitch right keyboard input to the GUI
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2275 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -272,8 +272,8 @@ int IsKey(int Key)
|
||||
case g_Wm.R: return GetAsyncKeyState(PadMapping[0].Wm.R);
|
||||
case g_Wm.U: return GetAsyncKeyState(PadMapping[0].Wm.U);
|
||||
case g_Wm.D: return GetAsyncKeyState(PadMapping[0].Wm.D);
|
||||
case g_Wm.PITCH_L: return GetAsyncKeyState('3');
|
||||
case g_Wm.PITCH_R: return GetAsyncKeyState('4');
|
||||
case g_Wm.PITCH_L: return GetAsyncKeyState(PadMapping[0].Wm.PitchL);
|
||||
case g_Wm.PITCH_R: return GetAsyncKeyState(PadMapping[0].Wm.PitchR);
|
||||
case g_Wm.SHAKE: return GetAsyncKeyState(PadMapping[0].Wm.Shake);
|
||||
|
||||
// Nunchuck
|
||||
@ -512,13 +512,13 @@ void TiltWiimoteKeyboard(float &Roll, float &Pitch)
|
||||
if(IsKey(g_Wm.PITCH_L))
|
||||
{
|
||||
// Stop at the upper end of the range
|
||||
if(KbDegree < g_Config.Trigger.Range.Roll)
|
||||
if(KbDegree < g_Config.Trigger.Range.Pitch)
|
||||
KbDegree += 3; // aim left
|
||||
}
|
||||
else if(IsKey(g_Wm.PITCH_R))
|
||||
{
|
||||
// Stop at the lower end of the range
|
||||
if(KbDegree > -g_Config.Trigger.Range.Roll)
|
||||
if(KbDegree > -g_Config.Trigger.Range.Pitch)
|
||||
KbDegree -= 3; // aim right
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user