alttester / alttester/AltTester-Unity-SDK

PressKey does not work with Mouse0

未关闭
#1,309 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug client project no version
主要语言
C#
星标
121
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

When PressKey(AltKeyCode.Mouse0) command is used an error is thrown in console:

image

### Additional info
This issue was encountered in a client project, while upgrading from AltUnityTester 1.7.0 to AltTester Unity SDK 1.8.2.

It was reproduced in this action combo:

altDriver.MoveMouse(x);
altDriver.PressKey(AltKeyCode.Mouse0, wait: false);
altDriver.MoveMouse(y);

Surprisingly, in this case it doesn't throw an error:

altDriver.Click(x)
altDriver.MoveMouse(y);
Thread.Sleep(100);
altDriver.PressKey(AltKeyCode.Mouse0);

Workaround:
- Replace PressKey(Mouse0) with Click(coordinates)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。