mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-18 14:29:57 +00:00
Fix recognition of mouse events on Shield Portable
This commit is contained in:
@@ -616,7 +616,9 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
else if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0)
|
else if ((event.getSource() & InputDevice.SOURCE_CLASS_POINTER) != 0)
|
||||||
{
|
{
|
||||||
// This case is for mice
|
// This case is for mice
|
||||||
if (event.getSource() == InputDevice.SOURCE_MOUSE)
|
if (event.getSource() == InputDevice.SOURCE_MOUSE ||
|
||||||
|
(event.getPointerCount() >= 1 &&
|
||||||
|
event.getToolType(0) == MotionEvent.TOOL_TYPE_MOUSE))
|
||||||
{
|
{
|
||||||
int changedButtons = event.getButtonState() ^ lastButtonState;
|
int changedButtons = event.getButtonState() ^ lastButtonState;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user