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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user