; Driver header stuff
.struct JOY_HDR
- ID .byte 3 ; $6A, $6F, $79 ("joy")
- VERSION .byte 1 ; Interface version
- MASKS .byte 8 ; Joystick state mask array
- JUMPTAB .struct
- INSTALL .word ; INSTALL routine
- UNINSTALL .word ; UNINSTALL routine
- COUNT .word ; COUNT routine
- READ .word ; READ routine
- IRQ .word ; IRQ routine
- .endstruct
+ ID .byte 3 ; $6A, $6F, $79 ("joy")
+ VERSION .byte 1 ; Interface version
+ LIBREF .addr ; Library reference
+ JUMPTAB .struct
+ INSTALL .addr ; INSTALL routine
+ UNINSTALL .addr ; UNINSTALL routine
+ COUNT .addr ; COUNT routine
+ READ .addr ; READ routine
+ .endstruct
.endstruct
;------------------------------------------------------------------------------
; The JOY API version, stored in JOY_HDR::VERSION
-JOY_API_VERSION = $01
+JOY_API_VERSION = $05
;------------------------------------------------------------------------------
; Variables
- .global _joy_drv ; Pointer to driver
+ .global _joy_drv ; Pointer to driver
.global _joy_masks
;------------------------------------------------------------------------------
.global _joy_load_driver
.global _joy_unload
- .global _joy_install
- .global _joy_uninstall
- .global _joy_count
- .global _joy_read
+ .global _joy_install
+ .global _joy_uninstall
+ .global _joy_count
+ .global _joy_read
.global _joy_clear_ptr
-