mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Hopefully fix Android compilation
This commit is contained in:
parent
1dddf42cbb
commit
703f1bc99d
|
@ -1000,6 +1000,9 @@ void CMenus::RenderDemoList(CUIRect MainView)
|
||||||
ListBox.y -= s_ScrollValue*ScrollNum*s_aCols[0].m_Rect.h;
|
ListBox.y -= s_ScrollValue*ScrollNum*s_aCols[0].m_Rect.h;
|
||||||
|
|
||||||
int NewSelected = -1;
|
int NewSelected = -1;
|
||||||
|
#if defined(__ANDROID__)
|
||||||
|
int DoubleClicked = 0;
|
||||||
|
#endif
|
||||||
int ItemIndex = -1;
|
int ItemIndex = -1;
|
||||||
|
|
||||||
for(sorted_array<CDemoItem>::range r = m_lDemos.all(); !r.empty(); r.pop_front())
|
for(sorted_array<CDemoItem>::range r = m_lDemos.all(); !r.empty(); r.pop_front())
|
||||||
|
@ -1093,7 +1096,11 @@ void CMenus::RenderDemoList(CUIRect MainView)
|
||||||
|
|
||||||
bool Activated = false;
|
bool Activated = false;
|
||||||
|
|
||||||
|
#if defined(__ANDROID__)
|
||||||
|
if (m_EnterPressed || (DoubleClicked && UI()->ActiveItem() == 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()->ActiveItem() == m_lDemos[m_DemolistSelectedIndex].m_aName))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
UI()->SetActiveItem(0);
|
UI()->SetActiveItem(0);
|
||||||
Activated = true;
|
Activated = true;
|
||||||
|
|
Loading…
Reference in a new issue