Implement latest pen/touch protocol updates

This commit is contained in:
Cameron Gutman 2023-06-27 22:21:39 -05:00
parent 69a4502f90
commit 0d72a0e009
3 changed files with 5 additions and 2 deletions

View File

@ -1469,9 +1469,11 @@ public class Game extends Activity implements SurfaceHolder.Callback,
case MotionEvent.ACTION_HOVER_ENTER:
case MotionEvent.ACTION_HOVER_MOVE:
case MotionEvent.ACTION_HOVER_EXIT:
return MoonBridge.LI_TOUCH_EVENT_HOVER;
case MotionEvent.ACTION_HOVER_EXIT:
return MoonBridge.LI_TOUCH_EVENT_HOVER_LEAVE;
case MotionEvent.ACTION_BUTTON_PRESS:
case MotionEvent.ACTION_BUTTON_RELEASE:
return MoonBridge.LI_TOUCH_EVENT_BUTTON_ONLY;

View File

@ -83,6 +83,7 @@ public class MoonBridge {
public static final byte LI_TOUCH_EVENT_MOVE = 0x03;
public static final byte LI_TOUCH_EVENT_CANCEL = 0x04;
public static final byte LI_TOUCH_EVENT_BUTTON_ONLY = 0x05;
public static final byte LI_TOUCH_EVENT_HOVER_LEAVE = 0x06;
public static final byte LI_TOOL_TYPE_PEN = 0x01;
public static final byte LI_TOOL_TYPE_ERASER = 0x02;

@ -1 +1 @@
Subproject commit 44c8b95400db3664a087d346297232685c565f85
Subproject commit 28d63b11ddb808662f0a7d90674a1376d99059c4