#147 New lightpen emulation

Greg King

Please add an emulation of Inkwell Systems lightpens. The code description is:

/* Inkwell Pen */
{ GUN, 0x04, 0x20, 20, 0 }

It emulates both the one-button 170-C and the two-button 184-C models.


  • Greg King

    Greg King - 2013-05-05
    • priority: 5 --> 3
  • gpz

    gpz - 2013-05-05

    do you have a testcase for this?

  • Marco van den Heuvel

    Added in rev 27371.

    Test case would be geos, since it has an input driver for this kind of lightpen.

  • Marco van den Heuvel

    • assigned_to: nobody --> blackystardust
    • status: open --> pending
  • Greg King

    Greg King - 2013-05-26

    Test program and drivers for lightpen emulation

  • Greg King

    Greg King - 2013-05-26

    I have attached a test program and drivers for the C64 and the C128. They are similar to the test programs for the mouse emulation. The two PRG files are self-contained; the drivers are linked into them. When you run the programs, calibrate the drivers by clicking on the vertical line near the center of the screen. Then, click off the white bar. The program will show where the pen is pointing; and, which buttons are being pressed.

    Those programs can be used to debug the NTSC mode bug (its lightpen Y co-ordinate is 12 too high).

    You may add them to the testprogs library.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks