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

Abnormal behaivier with Mouse #2

Open
pong-de-ring opened this issue Nov 17, 2024 · 0 comments
Open

Abnormal behaivier with Mouse #2

pong-de-ring opened this issue Nov 17, 2024 · 0 comments

Comments

@pong-de-ring
Copy link

Mouse function does not work correctly with JoystickWin.
Many mouse functions are reported to HID although just one function(e.g. Mouse.move(-10,0,0); ) is commanded.


#include <Mouse.h>
#include "JoystickWin.h"

void setup() {
Serial.begin(115200);
while (!Serial && (millis() < 3000)) delay(10);
pinMode(4,INPUT_PULLUP);
Mouse.begin();
JoystickWin.begin();
}

void loop() {
if(digitalRead(4)==LOW){
Mouse.move(-10,0,0);
}
delay(5);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant