Skip to content

Abnormal behaivier with Mouse #2

@pong-de-ring

Description

@pong-de-ring

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions