g0tmilk Posted July 7, 2022 Share Posted July 7, 2022 im building a mouse and keyboard usb from a rasperry pi. i have a working example with the mouse. but im confused about the x and y location documentation shows that both x and y consist of 2 values. a negative and positive x= -127 and 127 y= -127 and 127 so is there math involved? what is it? i can get the mouse to move by writing to the /dev/hidg0 echo -ne "\x00\x00\x40\x00\x40\x00\x00\x00" > /dev/hidg0 hex40=64 this command will locate the mouse to the center of my screen. but i cant get it to move one pixel at a time. im using ruby to automate this but i dont understand the coordinate system. since x and y require the use of a negative and a positive. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.