alttester / alttester/AltTester-Unity-SDK

PressKey does not work with Mouse0

オープン
#1,309 コメント 3 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。