From: Groepaz (groepaz_at_gmx.net)
Date: 2002-12-20 21:16:15
On Friday 20 December 2002 19:01, Ullrich von Bassewitz wrote:
> 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.
as for the protovision and dxs/hit adapter-drivers.... they both build a
bitfield thats equal to the usual stuff that you get from the normal
joystickports .... and i guess most other drivers might want to do that
aswell. at some point the conversion has to be done anyway, since you would
want to check joysticks in a loop and not write different code for each of
them.
--
___ ___ .___________________ .___________ _______.
c=64 / | \| \__ ___/ \ \_ _____/ \ \ [groepaz]
gb / ' \ | | | / \ / \ | __)_ / | \ gp32
cgb \ . / | | |/ ' \| \/ | \ psx
gba \___|_ /|___| |____|\____|__ /_______ /\____|__ / dc
-----\/-----'---------------\/--------\/---------\/
http://www.hitmen-console.org Hitmen WWW Headquarters
http://fly.to/hitmen-groepaz my personal playground
http://rr.c64.org/silversurfer home of the RR debugger
ftp.musoftware.de/pub/groepaz cc65 dump site
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-12-20 21:17:46 CET