TIP: Click on subject to list as thread! ANSI
echo: cbm
to: All
from: Daniel England
date: 2018-06-21 11:40:08
subject: C64 Lightpen support

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 | FidoUsenet Gateway (3:770/3)
SEEN-BY: 57/0 116/102 153/150 250 226/20 267/800 317/2 3 393/68 633/267 280
SEEN-BY: 640/384 712/620 848 770/0 1 3 100 340 772/0 1 210 500
@PATH: 770/3 1 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.