09-07-2022, 04:39 AM
(09-07-2022, 04:08 AM)mnrvovrfc Wrote: @madscijr might be determined to use a C program but could this be tried with QB64?
https://qb64phoenix.com/qb64wiki/index.php/DEVICEINPUT
Once I wanted to buy a mouse with six buttons but two of the "buttons" was nudging the mousewheel which was a no-go for me. WTF was I going to do with four extra buttons?! Ah well at least the square one in front of the mousewheel would have been enough for me instead of pressing that darned wheel down.
Yeah, I did experiments with DEVICEINPUT, it no workie. I can dig up the various tests & post here if it helps, but I'm pretty sure that for reading separate input from multiple mice in Windows, the RawInputAPI is the way. Unless there's a way to replicate the C code that calls the API in QB64, I need to take a crash course in C basics like reading command line parameters (maybe an input value for which mouse to return coords for) and how to call or shell out to the C mouse exe from QB64 and how the mouse exe would return the coordinates to QB64.