Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : using MOUSE
Author | Message | ||||
electricat Senior Member Joined: 30/11/2020 Location: LithuaniaPosts: 161 |
Searching through forums did not return much. So, PicomiteVGA RP2040 USB RC8 version happily detects keyboard and mouse. But how to read mouse data (USB mouse)? Listing functions and commands did not show anything mouse related. Tried MOUSE() function like in CMM2 but failed graciously (as expected ) Edited 2024-10-22 13:53 by electricat |
||||
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2131 |
You might find something here MMBasic catchup.pdf. . Edited 2024-10-22 14:33 by phil99 |
||||
electricat Senior Member Joined: 30/11/2020 Location: LithuaniaPosts: 161 |
Thx phil99! That was right direction! This is direct link with answer to my questions https://www.thebackshed.com/forum/ViewTopic.php?TID=16657&PID=216727#216727#216727 |
||||
electricat Senior Member Joined: 30/11/2020 Location: LithuaniaPosts: 161 |
quick example of pixel folowing mouse movements :) (Correct mouse device channel must be if not 3 as in my case) MODE 2 Device mouse set 3,MM.HRes\2,MM.VRes\2,0 Do If DEVICE(MOUSE 3,x) <> tmpx Or DEVICE(MOUSE 3,y) <> tmpy Then Pixel tmpx,tmpy,0 Pixel DEVICE(MOUSE 3,x),DEVICE(MOUSE 3,y) tmpx=DEVICE(MOUSE 3,x) tmpy=DEVICE(MOUSE 3,y) End If Loop Edited 2024-10-22 15:37 by electricat |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2109 |
I connected a usb hub and usb kb and mouse. usb kb works but no mouse response although it does say mouse disconnected when it was |
||||
Print this page |