Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:14 23 Oct 2024 Privacy Policy
Jump to

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: Lithuania
Posts: 161
Posted: 03:52am 22 Oct 2024
Copy link to clipboard 
Print this post

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: Australia
Posts: 2055
Posted: 04:09am 22 Oct 2024
Copy link to clipboard 
Print this post

You might find something here MMBasic catchup.pdf.
.
Edited 2024-10-22 14:33 by phil99
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 161
Posted: 05:11am 22 Oct 2024
Copy link to clipboard 
Print this post

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: Lithuania
Posts: 161
Posted: 05:33am 22 Oct 2024
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 2006
Posted: 06:26pm 22 Oct 2024
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024