1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-16 18:08:04 +00:00
Commit Graph

19 Commits

Author SHA1 Message Date
polluks
8e60102e8e Removed the colour purple
This commit may break compatibility.
2022-02-02 00:58:50 +01:00
polluks
a29a1b0a59 Added more purple (rain) 2022-01-31 02:18:01 +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
Pascal de Bruijn
c802c9c946 joy: refactor generic joy_masks array indices and macros 2017-07-23 23:45:52 +02:00
Pascal de Bruijn
d277055b5a nes: add system specific joy_masks array indices and macros 2017-07-19 18:14:44 +02:00
Pascal de Bruijn
2d9922a46e nes: remove semiredundant KEY_ defines
There are already JOY_ defines for most of these, and this should
be expanded upon instead.
2017-07-19 18:02:13 +02:00
mrdudz
1abce3a2a1 rename all waitvblank() to waitvsync() 2017-07-17 23:15:05 +02:00
Greg King
abfc36ec9c Programs need to reset NES input controllers by writing to them. 2015-12-15 11:26:04 -05:00
Greg King
c5d624c941 Added C declarations of the NES's I/O registers to <nes.h>. 2015-11-12 05:40:47 -05:00
Oliver Schmidt
e6008026aa Fixed bogus formatting of recent contribution.
I wasn't in the mood for discussion ;-)
2015-10-05 16:28:16 +02:00
Lauri Kasanen
7f409c3edb nes: Expose and document all joypad keys 2015-10-05 17:19:36 +03: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
ca2ba14bbe Added option to build samples with statically linked drivers - and have the targets use it by default which don't support dynamically loaded drivers.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5913 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-04 22:01:51 +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
e0822357c7 New get_tv function by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3832 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-04-10 20:20:26 +00:00
cuz
df4289cd34 Small addition by Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@3060 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-05-31 19:31:53 +00:00
cuz
442df28524 nes.h file by groepaz, beautified by me
git-svn-id: svn://svn.cc65.org/cc65/trunk@2055 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-04-14 21:01:06 +00:00