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:
techdragon.nguyen@gmail.com
2011-09-04 08:31:36 +00:00
parent df4aa9f6c2
commit ad72c0ddc3
5 changed files with 239 additions and 98 deletions

View File

@@ -189,7 +189,7 @@ bool CardSelector::CheckUserInput(JButton key)
int x,y;
if(JGE::GetInstance()->GetLeftClickCoordinates(x, y))
{
active = closest<True> (cards, limitor, static_cast<float> (x), static_cast<float> (y));
active = closest<True> (cards, limitor, static_cast<float> (x), static_cast<float> (y));
}
switch (key)