v2.0.2: fixed controller drag events incorrectly using separate IDs

This commit is contained in:
Evan Debenham
2023-04-10 17:09:27 -04:00
parent 1c944a0ada
commit e995af5c95
4 changed files with 29 additions and 26 deletions

View File

@@ -175,12 +175,8 @@ public class PointerEvent {
pointerEvents.clear();
//add drag events for any emulated presses
if (hovered){
for (int i = 10+LEFT; i <= 10+FORWARD; i++){
if (activePointers.containsKey(i)){
Game.inputHandler.emulateDrag(i-10);
}
}
if (hovered && activePointers.containsKey(ControllerHandler.CONTROLLER_POINTER_ID)){
Game.inputHandler.emulateDrag(ControllerHandler.CONTROLLER_POINTER_ID);
}
}