You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #94468 from m4gr3d/restart_editor_when_updating_touchscreen_settings
[Android Editor] Resolve issues with the editor touchscreen settings
This commit is contained in:
@@ -76,7 +76,10 @@ internal class GodotGestureHandler(private val inputHandler: GodotInputHandler)
|
||||
}
|
||||
|
||||
override fun onLongPress(event: MotionEvent) {
|
||||
contextClickRouter(event)
|
||||
val toolType = GodotInputHandler.getEventToolType(event)
|
||||
if (toolType != MotionEvent.TOOL_TYPE_MOUSE) {
|
||||
contextClickRouter(event)
|
||||
}
|
||||
}
|
||||
|
||||
private fun contextClickRouter(event: MotionEvent) {
|
||||
|
||||
@@ -462,7 +462,7 @@ public class GodotInputHandler implements InputManager.InputDeviceListener {
|
||||
return button;
|
||||
}
|
||||
|
||||
private static int getEventToolType(MotionEvent event) {
|
||||
static int getEventToolType(MotionEvent event) {
|
||||
return event.getPointerCount() > 0 ? event.getToolType(0) : MotionEvent.TOOL_TYPE_UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user