Skip to content

[Bug]: using keyToggle or mouseToggle causes massive delays with moveMouse #20

Description

@joao678

Version

0.2.2

Description of the issue

I'm using DroidPad to control my pc's mouse using a android phone gyroscope
for this I'm tegojs with a udp server to recieve the data basically in a loop.
Everything works fine as far as moving the mouse, however anytime either keyToggle or mouseToggle functions are used even only once, the mouse movements become extremely delayed, making it basically unusable.
Even after setting both setMouseDelay and setKeyboardDelay to 0
Same happens on node and bun

Steps to reproduce

  1. call moveMouse in a loop
  2. use keyToggle or mouseToggle

Logs or error messages

Environment

OS: Windows

Checklist

  • I have searched existing issues
  • I am using the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions