moses-palmer / pynput

Sends virtual input commands
GNU Lesser General Public License v3.0
1.77k stars 245 forks source link

Remove recursive import to fix uinput #488

Closed ferrix closed 2 years ago

ferrix commented 2 years ago

When init,py always imports mouse and keyboard, importing either will always import the other. This way the uinput backend will fail due to no uinput support for mouse.

moses-palmer commented 2 years ago

Thank you for your contribution!

This change would unfortunately break the public API, so I'm afraid that I cannot merge it. Please see the documentation for the supported workaround using a dummy backend for mouse.