Skip to content
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

abs mouse bug #2798

Closed
1 task done
0cococ opened this issue Sep 13, 2024 · 0 comments
Closed
1 task done

abs mouse bug #2798

0cococ opened this issue Sep 13, 2024 · 0 comments
Labels

Comments

@0cococ
Copy link

0cococ commented Sep 13, 2024

Operating System

Windows 11

Board

esp32s3

Firmware

This python code is a test case for the computer
def mouse_report(buttons: int, x: int, y: int) -> bytes:
return bytes([
0x02,
buttons,
x,
y,
])

if name == 'main':
ser = serial.Serial("COM6", baudrate=9600, timeout=1)

report = mouse_report(0, 500, 300)
print(f"Sending press report: {report}")
bytes_written = ser.write(report)
print(f"Bytes written: {bytes_written}")
ser.close()

What happened ?

I am using an ABS mouse. When I send through the CDC serial port, the ABS mouse is triggered. But when I test it on Windows, I find that its moving coordinates are not accurate. I have installed the absolute coordinates and converted them. When I test it on Android, it seems that nothing happens because I don't see any mouse movement or appearance. If it is not a problem with tinyusb, can you tell me where I am doing wrong? I will be very grateful. I have put all the codes in a zip and sent them to you.

How to reproduce ?

I am using an ABS mouse. When I send through the CDC serial port, the ABS mouse is triggered. But when I test it on Windows, I find that its moving coordinates are not accurate. I have installed the absolute coordinates and converted them. When I test it on Android, it seems that nothing happens because I don't see any mouse movement or appearance. If it is not a problem with tinyusb, can you tell me where I am doing wrong? I will be very grateful. I have put all the codes in a zip and sent them to you.

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

Screenshots

No response

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant