mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-01 23:35:28 +00:00
Implement latest pen/touch protocol updates
This commit is contained in:
parent
69a4502f90
commit
0d72a0e009
@ -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;
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user