Fixed the Connect Wiimote hotkeys from getting activated while a GameCube game is running.
This commit is contained in:
parent
cc6b55ee2a
commit
679d9351ea
|
@ -1433,7 +1433,7 @@ void CFrame::ParseHotkeys(wxKeyEvent &event)
|
||||||
// Actually perform the Wiimote connection or disconnection
|
// Actually perform the Wiimote connection or disconnection
|
||||||
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
||||||
{
|
{
|
||||||
if (WiimoteId >= 0)
|
if (WiimoteId >= 0 && SConfig::GetInstance().m_LocalCoreStartupParameter.bWii)
|
||||||
{
|
{
|
||||||
wxCommandEvent evt;
|
wxCommandEvent evt;
|
||||||
evt.SetId(IDM_CONNECT_WIIMOTE1 + WiimoteId);
|
evt.SetId(IDM_CONNECT_WIIMOTE1 + WiimoteId);
|
||||||
|
|
Loading…
Reference in New Issue