![]() |
Forum Index : Microcontroller and PC projects : Is it possible to detect mouse wheel rotation?
Author | Message | ||||
Peter63 Regular Member ![]() Joined: 28/07/2017 Location: SwedenPosts: 66 |
Is it possible to detect mouse wheel rotation? I'm using: PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.02 I am attaching my mouse test program. mouse_test.zip If it is possible to detect mouse wheel rotation what does the code for this look like. /Peter63 |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10237 |
No: I haven't found a way to get it working for USB mice |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7864 |
I *really* wanted this to be about a wheel for a pet mouse. I'm disappointed now. :( I think what you want is the MOUSE SET command. The arguments are: the USB channel x-coordinate y-coordinate wheel count so you might use it as: MOUSE SET 2, Xpos, Ypos, wheel I've never used this so I'm not sure, but that's how I'd do it according to the manual. Sorry, I have no working example code for you. EDIT: Thanks Peter. I assume that was for a PS2 mouse then? Edited 2025-07-10 16:57 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10237 |
The wheel works for PS2 mice - use the DEVICE(MOUSE 2,W) function |
||||
Amnesie Guru ![]() Joined: 30/06/2020 Location: GermanyPosts: 639 |
Yes, I can verify that. I use the mouse wheel detecting a lot with my PS/2 mouse. Didn't knew that it won't work for USB! Hm... Greetings Daniel Edited 2025-07-10 19:31 by Amnesie |
||||
Peter63 Regular Member ![]() Joined: 28/07/2017 Location: SwedenPosts: 66 |
OK then I know. PS2 mouse works. Thanks for the quick response as usual. /Peter63 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |