Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…OOL_TYPE_STYLUS, 属于手写笔,触控笔枚举
  • Loading branch information
tangkaikk committed Nov 20, 2024
1 parent 158e15e commit 9207dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/cocos/platform/android/AndroidPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ class GameInputProxy {
int actionMasked = action & AMOTION_EVENT_ACTION_MASK;
int eventChangedIndex = -1;

bool isMouseEvent = motionEvent->pointerCount > 0 && (motionEvent->pointers[0].toolType == AMOTION_EVENT_TOOL_TYPE_STYLUS || motionEvent->pointers[0].toolType == AMOTION_EVENT_TOOL_TYPE_MOUSE);
bool isMouseEvent = motionEvent->pointerCount > 0 && motionEvent->pointers[0].toolType == AMOTION_EVENT_TOOL_TYPE_MOUSE;

if (actionMasked == AMOTION_EVENT_ACTION_DOWN ||
actionMasked == AMOTION_EVENT_ACTION_POINTER_DOWN) {
Expand Down

0 comments on commit 9207dbc

Please sign in to comment.