[cc65] Joystick support

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-12-20 19:01:09


Hi!

Having a look at the existing joystick header file, I found that there is one
problem with modules:

What about the masks used to evaluate the buttons and directions? Currently
there are different #defines for different platforms, because using different
values means shorter code (no bitmask conversions needed).

When using loadable drivers, it seems that this will no longer work, or at
least it's not very clean, since I don't know anything about the
implementation in the driver.

Would it be acceptable to have fixed #defines for the button masks, even if
this means conversion in the driver? Another solution would be to add a
function that returns the needed bit masks, but this makes usage more complex
and I'm not sure if this will really improve speed.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-12-20 19:01:14 CET