Re: [cc65] Joystick support

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-12-21 00:46:59


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.

> Or I can move the old definition of readjoy to one of GEOS includes that has
> native mouse functions. Anyway, readjoy had its own problems on GEOS64 until
> today too.

There are some more platforms that have this problem, the P500 for example.
For now, I will leave the readjoy function in place on these platforms.

Maciej has pointed out a problem with file names: Does anybody know if the 16
character limit for CBM file names does include a drive specification? Problem
is that the CBM file code will always prepend a drive spec if the file name
does not contain one, but it limits the length of the name to 16 chars
including the drive spec, so names cannot be longer than 14 chars.

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-21 00:47:07 CET