Hopefully fix Android compilation

This commit is contained in:
def 2015-08-27 20:52:06 +02:00
parent 1dddf42cbb
commit 703f1bc99d

View file

@ -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;