v1.2.1: added support for binding mouse 4 and 5 to game actions
This commit is contained in:
@@ -125,6 +125,12 @@ public class PointerEvent {
|
||||
public static synchronized void addPointerEvent( PointerEvent event ){
|
||||
pointerEvents.add( event );
|
||||
}
|
||||
|
||||
public static synchronized void addIfExisting( PointerEvent event ){
|
||||
if (activePointers.containsKey(event.id)) {
|
||||
pointerEvents.add(event);
|
||||
}
|
||||
}
|
||||
|
||||
public static synchronized void processPointerEvents(){
|
||||
//handle any hover events separately first as we may need to add drag events
|
||||
|
||||
Reference in New Issue
Block a user