/* */
/* */
/* */
-/* (C) 2002 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 2002-2006, Ullrich von Bassewitz */
+/* Roemerstrasse 52 */
+/* D-70794 Filderstadt */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
/* A structure that describes the header of a joystick driver loaded into
- * memory.
- */
+** memory.
+*/
typedef struct {
/* Driver header */
- char id[3]; /* Contains 0x65, 0x6d, 0x64 ("emd") */
+ char id[3]; /* Contains 0x6a, 0x6f, 0x79 ("joy") */
unsigned char version; /* Interface version */
-
- /* Bitmasks for the joystick states. See joystick.h for indices */
- unsigned char masks[8];
+ void* libreference; /* Library reference */
/* Jump vectors. Note that these are not C callable */
void* install; /* INSTALL routine */
- void* deinstall; /* DEINSTALL routine */
+ void* uninstall; /* UNINSTALL routine */
void* count; /* COUNT routine */
void* read; /* READ routine */
-/* EM kernel variables */
-extern joy_drv_header* joy_drv; /* Pointer to driver */
-
+/* JOY kernel variables */
+extern joy_drv_header* joy_drv; /* Pointer to driver */
/*****************************************************************************/
-/* Functions */
+/* Code */
/*****************************************************************************/
-unsigned char __fastcall__ joy_install (void* driver);
-/* Install the driver once it is loaded, return an error code. */
-
-void __fastcall__ joy_deinstall (void);
-/* Deinstall the driver before unloading it */
+void joy_clear_ptr (void);
+/* Clear the joy_drv pointer */
/* End of joy-kernel.h */
#endif
-
-
-
-