Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:26 19 Nov 2025 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 : Hope for F4 mouse with all basic code?

Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3478
Posted: 11:52am 14 May 2021
Copy link to clipboard 
Print this post

What I'd like is a pixel-pointing device such as vegipete uses in his missle-control-like CMM2 game, Green Hills #2.

I've scanned through the CMM2 mouse threads from before matherp incorporated mouse control into the firmware, but I haven't located all of the pieces.

By "all basic code" I don't mean not having something like TassyJim's arduino translator hardware if needed--just that MMBasic code using interrupts will handle the incoming signals.  

So my questions are, what does PS/2 mouse output look like, what code goes into the arduino, what MMBasic user code handles what is received?

I'm not anticipating that the editor would use the mouse, just that a programmer wishing quickly to point to and select a pixel would be able to do so.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2831
Posted: 12:40pm 14 May 2021
Copy link to clipboard 
Print this post

I suppose one way would be to have the arduino emulate the touch controller of an LCD panel. Mouse motion generating TOUCH(X) and TOUCH(Y) and a button press a touch interupt.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3478
Posted: 12:59pm 14 May 2021
Copy link to clipboard 
Print this post

I think I found what I was looking for with TassyJim's thread here.

Looks like the best place for me to start is to try to make a CFunction for the first time so it's all done on the F4.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3478
Posted: 01:50pm 14 May 2021
Copy link to clipboard 
Print this post

  phil99 said  I suppose one way would be to have the arduino emulate the touch controller of an LCD panel. Mouse motion generating TOUCH(X) and TOUCH(Y) and a button press a touch interupt.

Doh! TOUCH itself would be just the thing. Don't know why I didn't think of that.

I'd still like to look into the mouse as CFunction, but it wasn't going to be high on my list anyway.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025