Re: [cc65] Joystick support

Date view Thread view Subject view

From: Carsten Strotmann (cas_at_strotmann.de)
Date: 2002-12-21 11:32:30


Am Samstag, 21. Dezember 2002 00:46 schrieb Ullrich von Bassewitz:

> Hi!
>
> On Sat, Dec 21, 2002 at 12:10:46AM +0100, Maciej Witkowiak wrote:
> > GEOS was missing on the list of supported platforms in joystick.h and I
> > was going to fix it but joystick.h has changed drastically today - it has
> > module now.
>
> Yes, I've written the wrapper code for the joystick modules and already
> converted the readjoy modules for the C64, VIC20 and C128 to modules. I've
> placed a sample module (the one for the C64 joystick driver) onto the web
> server as
>
>    	http://www.cc65.org/c64-stdjoy.s
>
> if anyone wants to look at the code.
>
> Carsten: Adding a driver for the multi joystick is no problem now. Please
> have a look at the driver code. There are just 4 entry points: INSTALL,
> DEINSTALL, COUNT and READ. The code should be more or less self
> explanatory. Converting an existing readjoy() function into a driver is
> piece of cake using one of the existing driver sources as a template.
>

Ok, I will do a multi-joystick driver. I had a idea yesterday before sleep, I 
would ask if this is possible:

to have a switch for the linker/compiler to link a specific module static at 
compiletime. That would solve the problem of I/O code in games which have no 
need for file I/O otherwise. em_load and em_unload are NOOPs in this case.
Do you think this is possible?

Regards

Carsten
----------------------------------------------------------------------
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-21 11:29:36 CET