v1.2.1: added support for binding mouse 4 and 5 to game actions

This commit is contained in:
Evan Debenham
2022-03-30 16:10:19 -04:00
parent aa2e012fa4
commit e63b5a208c
3 changed files with 27 additions and 4 deletions

View File

@@ -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