Experimental things

* Multitouch handling, allows one of these actions below to work with
moving camera at the same time.
- Switching hotbar slot; might not work properly
- Destroying block (left mouse button) with another finger
long-pressed (without pressing the PRI button)
- Right mouse trigger with another finger tapped onto the screen
(without pressing the SEC button); not working properly yet
* Sub-pixel cursor support; not yet checked
This commit is contained in:
Duy Tran Khanh committed 2021-12-13 07:40:12 +07:00
1 parent ec0ec560a3
commit 150cf861b1
9 files changed
+139 -100

No files matched your search

@@ -104,7 +104,7 @@ public class UIKit {
PLaunchApp.launchMinecraft();
}
public static void callback_SurfaceViewController_onTouch(int event, int x, int y) {
public static void callback_SurfaceViewController_onTouch(int event, float x, float y) {
switch (event) {
case ACTION_DOWN:
case ACTION_UP: