forked from mirrors/kolyah35-minecraft-pe-0.6.1
FIX: Now we're using useTouchsceen() right way!!!!
This commit is contained in:
parent
91ce365a26
commit
4f8b18b735
23 changed files with 193 additions and 209 deletions
|
|
@ -177,9 +177,11 @@ void Screen::keyPressed( int eventKey )
|
|||
textbox->keyPressed(minecraft, eventKey);
|
||||
}
|
||||
|
||||
#ifdef TABBING
|
||||
if (minecraft->useTouchscreen())
|
||||
return;
|
||||
|
||||
|
||||
// "Tabbing" the buttons (walking with keys)
|
||||
const int tabButtonCount = tabButtons.size();
|
||||
if (!tabButtonCount)
|
||||
|
|
@ -199,6 +201,7 @@ void Screen::keyPressed( int eventKey )
|
|||
}
|
||||
|
||||
updateTabButtonSelection();
|
||||
#endif
|
||||
}
|
||||
|
||||
void Screen::charPressed(char inputChar) {
|
||||
|
|
@ -209,11 +212,13 @@ void Screen::charPressed(char inputChar) {
|
|||
|
||||
void Screen::updateTabButtonSelection()
|
||||
{
|
||||
#ifdef TABBING
|
||||
if (minecraft->useTouchscreen())
|
||||
return;
|
||||
|
||||
for (unsigned int i = 0; i < tabButtons.size(); ++i)
|
||||
tabButtons[i]->selected = (i == tabButtonIndex);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Screen::mouseClicked( int x, int y, int buttonNum )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue