alttester / alttester/AltTester-Unity-SDK
PressKey does not work with Mouse0
Abierto
bug
client project
no version
- Lenguaje dominante
- C#
- Estrellas
- 121
- Forks
- 24
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
When PressKey(AltKeyCode.Mouse0) command is used an error is thrown in console:
### 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)
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.