X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fjoystick%2Fjoy-kernel.h;h=783508247e76daf7267dd8b0b26abdb392eec648;hb=c39d07dd177a23079c9660d65f974861f331e29a;hp=f30f7982b549068dcf28b6c04dc25bef7e216209;hpb=a143f260616c7846dafc4e41396e784550596b52;p=cc65 diff --git a/include/joystick/joy-kernel.h b/include/joystick/joy-kernel.h index f30f7982b..783508247 100644 --- a/include/joystick/joy-kernel.h +++ b/include/joystick/joy-kernel.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (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 */ @@ -45,20 +45,18 @@ /* 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 */ @@ -66,29 +64,21 @@ typedef struct { -/* 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 - - - -