I'm trying to use a button press to send a small amount of scrollwheel change, as follows:
int scrollup() { VirtualOutput(OUT_TYPE_MOUSE, OUT_ID_AXIS+2, 5); }
int scrolldn() { VirtualOutput(OUT_TYPE_MOUSE, OUT_ID_AXIS+2, -5); }
MapKey(&W1, H2U, EXEC("scrollup();"));
MapKey(&W1, H2D, EXEC("scrolldn();"));
This works well, except that every time I click the button, it moves the mouse to the center of my screen. I suspect it's a problem with the definitions, but I can't find where those are set, where OUT_ID_AXIS is defined. Any suggestions?