1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-08 10:29:04 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
mrdudz
85e480db3d style fixes 2018-03-08 04:05:10 +01:00
mrdudz
38fedfd78b also show pressed key, so we can verify keyboard works with the joystick driver 2018-03-07 00:19:14 +01:00
mrdudz
c0d8021fd5 add comment on linking, tweak a bit for easier debugging 2018-03-06 23:36:11 +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
Christian Groessler
e6530d68dd Fix joystick driver. Add interruptor support.
Note that the joystick driver doesn't support combined movements (like
left/up or right/down). This should be fixed.
2017-02-15 15:45:49 +01:00
Christian Groessler
939a5ccbc2 fix last change 2014-06-02 08:41:35 +02:00
Christian Groessler
deddb00a3a use DYN_DRV and MOUSE_DRIVER defines to decide which driver to use 2014-06-01 19:17:02 +02:00
Christian Groessler
5595137d1d Adapt joy-test.c for Atari 5200 (only has 20x24 display)
Fix static driver name.
2014-05-30 23:39:35 +02:00
Oliver Schmidt
85885001b1 Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
uz
368e881288 The NES must have the joystick driver linked in. Change by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3905 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-01-06 17:44:20 +00:00
cuz
c7ddd12bba Oliver Schmidt added test output for second fire button.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3815 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-16 09:27:20 +00:00
cuz
deca5a5fba Replaced joystick test program
git-svn-id: svn://svn.cc65.org/cc65/trunk@1822 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-21 09:35:54 +00:00