-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Pico] HID Mouse does not work on macOS Big Sur 11.2.1 #4479
Comments
The url is not present, so I don't know which line you mean. Could you edit your post? |
@dhalbert Thank you for the prompt response! I apologise, that comment was a leftover from the issue template that I missed and left there by accident. The rest of the issue description should be correct now. |
It appears that MacOS changed something that caused HID to stop working. This was already true with iOS: the presence of the gamepad HID device causes other HID devices to not work for iOS. I will test this myself with a custom build. You can turn off the gamepad HID device if you want to try a custom build: https://learn.adafruit.com/building-circuitpython/customizing-usb-devices#customizing-usb-hid-devices-3084080-4 |
We took that out of the issue template; it was confusing, in this case both to you and me. I just re-tested on High Sierra 10.13.6 and Big Sur 11.2.2. In neither case did the mouse work in the stock build, but if I set I thought in the past that HID Mouse did work on High Sierra, etc., but I must have misremembered. Perhaps it worked several years ago, when I was first working on the library. I know that with BLE HID, a Gamepad can be a problem on iOS. |
In CircuitPython 7.0.0 we plan to make it possible to turn these devices on and off in |
I am trying to make a custom build but I keep getting errors. I followed all setup instructions from the documentation and I tested it on macOS Big Sur and Ubuntu 20.04. On Ubuntu I get the following error:
On the mac I get the following error:
Please let me know if this is a known issue. I will keep experimenting with the build (perhaps build one of the release branches/tags instead of master). What is more, I would suggest updating the MacOS Setup guide to replace the |
I managed to make a build form the |
Thanks for noting this! This is a moving target. I have updated the MacOS instructions in the Learn Guide. |
I am able to reproduce the Ubuntu issue. It does not work. |
Tested on Catalina and Big Sur with a QT PY M0, with a code that jiggles the mouse for a sec on boot. The mouse works in Circuitpython 6.2.0-beta2, but not any subsequent version available on S3. Intermediaries are missing due to cleanup, so maybe I'm gonna try to learn to use |
This was not what I expected when testing this; I thought it was only dependent on the HID descriptors, so I did not bother to test earlier verions. If you want to learn to bisect, go ahead, but I can track this down too. |
The descriptors differ. I'll work on this. |
Firmware
Code/REPL
Behavior
The mouse does not work on macOS Big Sur 11.2.1 but it works correctly on Windows 10 and Lubuntu 20.04.1.
Description
The board has an analog joystick (two potentiometers and a tact switch) connected. They are wired and configured correctly as in the console output I can see the correct voltages and switch status logged. What is more, the code above works correctly on Windows 10 and Lubuntu 20.04.1 - it moves the mouse cursor and performs the mouse clicks.
On macOS Big Sur 11.2.1 it has no effect at all - the cursor does not move and the click event does not work.
I tried adding the following keyboard key press code instead of the mouse click and it does work correctly on the Mac.
Please let me know if there is anything I can do to help debugging or fixing this issue.
The text was updated successfully, but these errors were encountered: