adjusted controls for Touch interface on iOS.
* Single Tap now implemented * Touch and Hold (2 secs) to pop up menu * added a pan gesture to simulate flicking up/down and left/right * removed dependency on binding keys to game for iOS devices. (perhaps extend this to all touch devices.) * flicking motion needs to be expanded to allow for smooth scrolling. Right now every flick is equivalent to going one slot up/down/left/right.
This commit is contained in:
@@ -2302,6 +2302,7 @@ WGuiBase::CONFIRM_TYPE WGuiKeyBinder::needsConfirm()
|
||||
}
|
||||
|
||||
// Check whether any button has no key associated to it.
|
||||
#if (!defined IOS)
|
||||
confirmingButton = JGE_BTN_NONE;
|
||||
for (signed int i = (sizeof(btnToCheck) / sizeof(btnToCheck[0])) - 1; i >= 0; --i)
|
||||
{
|
||||
@@ -2326,7 +2327,8 @@ WGuiBase::CONFIRM_TYPE WGuiKeyBinder::needsConfirm()
|
||||
confirmMenu->Add(2, _("This is okay, validate and save").c_str());
|
||||
return CONFIRM_NEED;
|
||||
}
|
||||
|
||||
#endif // IOS
|
||||
|
||||
return CONFIRM_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user