Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Commodore » Commodore 8-bit » C64 Lightpen support
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
C64 Lightpen support [message #369226] Thu, 21 June 2018 14:40 Go to next message
Daniel England is currently offline  Daniel England
Messages: 86
Registered: January 2005
Karma: 0
Member
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.
Re: C64 Lightpen support [message #369248 is a reply to message #369226] Thu, 21 June 2018 19:41 Go to previous message
Daniel England is currently offline  Daniel England
Messages: 86
Registered: January 2005
Karma: 0
Member
Meh...

I found that cc65 has an example driver for the InkWell LightPen. I used it to implement a small test program which works very well with VICE on Windows but seems to not work on Android like I want. Darn!

Oh well... I might have to hack at VICE. Not something I'd enjoy. I'm sure compiling it for Android would be a pain.


Daniel.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Official FAQ comp.binaries.cbm (semimonthly posting)
Next Topic: PET: opening a file in asm?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Mar 29 05:31:08 EDT 2024

Total time taken to generate the page: 0.69241 seconds