You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #32250 from lawnjelly/android-keyboard2
Fix Android keyboard crash with left cursor
This commit is contained in:
@@ -96,7 +96,6 @@ public class GodotInputHandler implements InputDeviceListener {
|
|||||||
GodotLib.joybutton(device_id, button, false);
|
GodotLib.joybutton(device_id, button, false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
final int chr = event.getUnicodeChar(0);
|
final int chr = event.getUnicodeChar(0);
|
||||||
@@ -108,7 +107,7 @@ public class GodotInputHandler implements InputDeviceListener {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean onKeyDown(final int keyCode, KeyEvent event) {
|
public boolean onKeyDown(final int keyCode, KeyEvent event) {
|
||||||
@@ -142,7 +141,6 @@ public class GodotInputHandler implements InputDeviceListener {
|
|||||||
GodotLib.joybutton(device_id, button, true);
|
GodotLib.joybutton(device_id, button, true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
final int chr = event.getUnicodeChar(0);
|
final int chr = event.getUnicodeChar(0);
|
||||||
@@ -154,7 +152,7 @@ public class GodotInputHandler implements InputDeviceListener {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean onGenericMotionEvent(MotionEvent event) {
|
public boolean onGenericMotionEvent(MotionEvent event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user