1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-31 20:06:11 +00:00
Commit Graph

13 Commits

Author SHA1 Message Date
Oliver Schmidt
7f52a770d9 Removed joy_masks array.
So far the joy_masks array allowed several joystick drivers for a single target to each have different joy_read return values. However this meant that every call to joy_read implied an additional joy_masks lookup to post-process the return value.

Given that almost all targets only come with a single joystick driver this seems an inappropriate overhead. Therefore now the target header files contain constants matching the return value of the joy_read of the joystick driver(s) on that target.

If there indeed are several joystick drivers for a single target they must agree on a common return value for joy_read. In some cases this was alredy the case as there's a "natural" return value for joy_read. However a few joystick drivers need to be adjusted. This may cause some overhead inside the driver. But that is for sure smaller than the overhead introduced by the joy_masks lookup before.

!!! ToDo !!!

The following three joystick drivers become broken with this commit and need to be adjusted:
- atrmj8.s
- c64-numpad.s
- vic20-stdjoy.s
2017-08-19 19:11:28 +02:00
Greg King
051c21726b Added Inkwell lightpen drivers for the C64 and the C128.
They use the mouse driver programming interface.

Added a test program for lightpen drivers.  Now, it knows about only those two drivers; it will need updating when others are added.
2013-05-29 20:02:29 -04:00
Oliver Schmidt
85885001b1 Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
Oliver Schmidt
44fd1082ae Adjusted C declarations to the changed static driver names. 2013-05-09 10:20:03 +02:00
ol.sc
fa6dae8fa9 Added declarations for target-specific static drivers being part of the C library.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5925 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-07 23:20:58 +00:00
ol.sc
5a2a8a030f Added TGI colors (simply based on the conio colors).
git-svn-id: svn://svn.cc65.org/cc65/trunk@4987 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-04-20 12:20:33 +00:00
uz
9d440c0102 Added new return code for get_ostype().
git-svn-id: svn://svn.cc65.org/cc65/trunk@4571 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-02-01 18:04:31 +00:00
cuz
6fd17983ad Introduce COLOR_PURPLE as an alias for COLOR_VIOLET
git-svn-id: svn://svn.cc65.org/cc65/trunk@2462 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-10-01 17:56:06 +00:00
cuz
651e82ac78 New get_ostype function
git-svn-id: svn://svn.cc65.org/cc65/trunk@2288 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-08-12 17:40:37 +00:00
cuz
786b3a7fe8 Moved _vic.h to _vic2.h. Renamed __vic to __vic2.
Added a new file _vic.h for the VIC (1) used in the VIC20.
Added the VIC chip to vic20.h.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1492 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 20:33:50 +00:00
cuz
3dc0fb59bc Check for wrong header file inclusions, add CBM510 stuff
git-svn-id: svn://svn.cc65.org/cc65/trunk@948 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-09-19 08:46:07 +00:00
cuz
a17dee1a1c Added standard copyright headers
git-svn-id: svn://svn.cc65.org/cc65/trunk@193 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-07-22 19:03:03 +00:00
uz
53dd513176 This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-05-28 13:40:48 +00:00