1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00
Commit Graph

25 Commits

Author SHA1 Message Date
mrdudz
5fc9d3f048 change driver _install calls from taking "void*" to "const void*" 2021-05-16 22:57:28 +02:00
Oliver Schmidt
d7afadb2fe Factored out target specific inclusion of target header.
So far conio.h included the target header to get the CH_... and COLOR_... macros. However tgi.h never did the same to get the TGI_COLOR_... macros. And some time ago the JOY_..._MASK macros moved from joystick.h into the target header yet joystick.h didn't include the target header.

Why wasn't that issue detected so far? Because about every program using TGI and/or the joystick uses CONIO too and therefore includes the target header that way.

However, conceptually it's clean to factor out the target header inclusion and have tgi.h and joystick.h do it like conio.h.

Apart from that user code may make direct use of target.h too.
2018-02-02 12:59:05 +01:00
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
Oliver Schmidt
375ee571c2 Removed 'fire'. 2017-07-28 19:19:11 +02:00
Pascal de Bruijn
c802c9c946 joy: refactor generic joy_masks array indices and macros 2017-07-23 23:45:52 +02:00
Greg King
0390c34e88 Changed multi-line C comments into another style.
The left side doesn't look unbalanced.
2014-06-30 16:51:07 -04:00
Oliver Schmidt
85885001b1 Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ol.sc
1ebee7cbd3 Harmozined typing of static driver address.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5934 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-13 22:23:10 +00:00
ol.sc
6860ac7dfd Introduced static standard drivers.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5891 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-01 19:53:47 +00:00
uz
e531e5abd1 Removed __fastcall__ declarations for functions without parameters.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5073 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-07 20:19:35 +00:00
cuz
57127ecb06 Added second fire button
git-svn-id: svn://svn.cc65.org/cc65/trunk@3244 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-10-14 16:33:13 +00:00
cuz
9b36efac4c Fixed comments
git-svn-id: svn://svn.cc65.org/cc65/trunk@1956 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-02-10 22:31:16 +00:00
cuz
3aee15b6ce Make joy_install, joy_uninstall user callable functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1950 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-02-10 22:11:12 +00:00
cuz
4e61ec9270 Added joy_stddrv
git-svn-id: svn://svn.cc65.org/cc65/trunk@1820 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-21 09:23:20 +00:00
cuz
a995a14315 Cleanup, new JOY_BTN_... macros
git-svn-id: svn://svn.cc65.org/cc65/trunk@1809 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-20 23:25:58 +00:00
cuz
a143f26061 New joystick API
git-svn-id: svn://svn.cc65.org/cc65/trunk@1798 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-20 21:02:35 +00:00
cuz
47d4d62d1f The C16 does also support a joystick
git-svn-id: svn://svn.cc65.org/cc65/trunk@1733 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-10 23:38:49 +00:00
cuz
f64baf02ec Changed joystick bits after change in joystick code for VC20
git-svn-id: svn://svn.cc65.org/cc65/trunk@1385 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-09 05:07:22 +00:00
cuz
12154bdaa7 VIC20 needs other joystick constants
git-svn-id: svn://svn.cc65.org/cc65/trunk@1383 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-08 12:28:11 +00:00
cuz
f0d89e09bc Added VIC20 port changes from Steve Schmidtke
git-svn-id: svn://svn.cc65.org/cc65/trunk@1376 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-07 05:18:13 +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
6e29f555d2 Use && and || in preprocessor #if statements. Other minor changes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@866 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-09-08 14:39:01 +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
cuz
5453c45d8f Add the atari target
git-svn-id: svn://svn.cc65.org/cc65/trunk@104 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-22 12:42:37 +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