![]() |
Forum Index : Microcontroller and PC projects : using MOUSE
Author | Message | ||||
electricat![]() Senior Member ![]() Joined: 30/11/2020 Location: LithuaniaPosts: 299 |
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 ![]() ![]() Edited 2024-10-22 13:53 by electricat My MMBasic 'sand box' |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2615 |
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: 299 |
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 My MMBasic 'sand box' |
||||
electricat![]() Senior Member ![]() Joined: 30/11/2020 Location: LithuaniaPosts: 299 |
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 My MMBasic 'sand box' |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2546 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |