]> git.sur5r.net Git - cc65/commit
Used a library-reference method to calibrate lightpen drivers.
authorGreg King <gregdk@users.sf.net>
Sun, 23 Jun 2013 07:18:28 +0000 (03:18 -0400)
committerGreg King <gregdk@users.sf.net>
Sun, 23 Jun 2013 07:18:28 +0000 (03:18 -0400)
commite63bf1cde1c0d63ca1d78238f56d35401ad3a996
treee6dd7f8b79089c9bf2249a8322e99faf267f3cb5
parent66ca781bb176cf316bb068d970fd7b3495d51e90
Used a library-reference method to calibrate lightpen drivers.

The mouse reference is a pointer.  If it's NULL, the driver uses a default.  If it's non-NULL, then it points to a function that the driver can call.  That function will adjust the driver's calibration value.  It could ask the user to adjust the pen; or, it could read a file that holds a value from a previous calibration.

Application writers can choose how it's done: a function that's provided by the library, a custom function, or nothing.
include/mouse.h
libsrc/c128/libref.s
libsrc/c128/mou/c128-inkwell.s
libsrc/c128/mouseref.s [new file with mode: 0644]
libsrc/c128/pencalib.c [new file with mode: 0644]
libsrc/c64/libref.s
libsrc/c64/mou/c64-inkwell.s
libsrc/c64/mouseref.s [new file with mode: 0644]
libsrc/c64/pencalib.c [new file with mode: 0644]
libsrc/cbm/penadjust.c [new file with mode: 0755]
testcode/lib/pen-test.c