C64 Lightpen support
From
Daniel England@3:770/3 to
All on Thu Jun 21 11:40:09 2018
Heyas!
I'm wondering if I can get some helpful advice...
I'm currently writing a game for the C64 that has a fairly complicated menu system with up to about ten options on it and I'm currently supporting keyboard
and mouse input.
I want to run the game in VICE on Android so I can play the game on the go.
However, the mouse support seems to require a real mouse and that would be a little awkward.
I could support joystick navigation but I think that would be a little cumbersome unless I program the menu slightly differently.
So, I think I want to support the lightpen. I want to be able to tap the screen and navigate the menu options (or set the pointer position).
Firstly, does anyone know how if this is how it works on VICE for Android?
Secondly, can anyone tell me how to program the support? I'm writing the game in assembly, of course but a BASIC example would suffice.
I don't quite understand the difference between the triggers and the position and how the IRQ and latching works on the VIC-II. I understand that on a real C64 there are some caveats. Do these apply to VICE?
TIA!
Daniel.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)