Tied in my recent Android flick gesture addition to a Scroll() function. GameState now has a virtual function OnScroll() call that, by default is a no-op; each game state can choose to override how to respond to flick gestures. I've added one such override in the Deck Editor so that a flick up/down acts like the psp button up/down for scrolling between color filters.
This commit is contained in:
@@ -319,6 +319,10 @@ class JGE
|
||||
// Returns false if nothing has been clicked, true otherwise
|
||||
bool GetLeftClickCoordinates(int& x, int& y);
|
||||
|
||||
|
||||
// Scroll events - currently triggered by SDL JOYBALL events
|
||||
void Scroll(int inXVelocity, int inYVelocity);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
/// Get if the system is ended/paused or not.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user