mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix double click in demos menu
This commit is contained in:
parent
df12171040
commit
0667864657
|
@ -1108,9 +1108,9 @@ void CMenus::RenderDemoList(CUIRect MainView)
|
|||
bool Activated = false;
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
if (m_EnterPressed || (DoubleClicked && UI()->ActiveItem() == m_lDemos[m_DemolistSelectedIndex].m_aName))
|
||||
if (m_EnterPressed || (DoubleClicked && UI()->HotItem() == m_lDemos[m_DemolistSelectedIndex].m_aName))
|
||||
#else
|
||||
if (m_EnterPressed || (Input()->MouseDoubleClick() && UI()->ActiveItem() == m_lDemos[m_DemolistSelectedIndex].m_aName))
|
||||
if (m_EnterPressed || (Input()->MouseDoubleClick() && UI()->HotItem() == m_lDemos[m_DemolistSelectedIndex].m_aName))
|
||||
#endif
|
||||
{
|
||||
UI()->SetActiveItem(0);
|
||||
|
|
Loading…
Reference in a new issue