Fixed hotkeys not working with the TAS Input dialog open.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7676 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
bb827eb837
commit
2eb1565aaa
|
@ -864,7 +864,7 @@ void TASManipFunction(SPADStatus *PadStatus, int controllerID)
|
||||||
void CFrame::OnKeyDown(wxKeyEvent& event)
|
void CFrame::OnKeyDown(wxKeyEvent& event)
|
||||||
{
|
{
|
||||||
if(Core::GetState() != Core::CORE_UNINITIALIZED &&
|
if(Core::GetState() != Core::CORE_UNINITIALIZED &&
|
||||||
RendererHasFocus())
|
(RendererHasFocus() || g_TASInputDlg->HasFocus()))
|
||||||
{
|
{
|
||||||
int WiimoteId = -1;
|
int WiimoteId = -1;
|
||||||
// Toggle fullscreen
|
// Toggle fullscreen
|
||||||
|
|
|
@ -368,3 +368,8 @@ void TASInputDlg::OnCloseWindow(wxCloseEvent& event)
|
||||||
ResetValues();
|
ResetValues();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TASInputDlg::HasFocus()
|
||||||
|
{
|
||||||
|
return (wxWindow::FindFocus() == this || wxWindow::FindFocus()->GetParent() == this);
|
||||||
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ class TASInputDlg : public wxDialog
|
||||||
void UpdateFromText(wxCommandEvent& event);
|
void UpdateFromText(wxCommandEvent& event);
|
||||||
void ResetValues();
|
void ResetValues();
|
||||||
void GetValues(SPADStatus *PadStatus, int controllerID);
|
void GetValues(SPADStatus *PadStatus, int controllerID);
|
||||||
|
bool HasFocus();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
u8 mainX, mainY, cX, cY, lTrig, rTrig;
|
u8 mainX, mainY, cX, cY, lTrig, rTrig;
|
||||||
|
|
Loading…
Reference in New Issue