@matttang7 wrote:
I’m trying to let the user replace mouse click/held with z or x.
In my keyPressedmethod I put this:
if (key == ‘z’ || key == ‘x’) {
mousePressed(ofGetMouseX(), ofGetMouseY(), 0);
mouseDragged(ofGetMouseX(), ofGetMouseY(), 0);
}
it works for single clicks but it doesn’t simulate dragging when I hold it down.
Posts: 1
Participants: 1