1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-03 06:29:36 +00:00

Corrected the default upper limits of some mouse drivers' bounding box.

The upper limits need to be one less than the screen sizes because the minimum co-ordinate is zero instead of one.
This commit is contained in:
Greg King 2014-03-18 02:41:57 -04:00
parent 1d6000213c
commit 3ef184bdd6
5 changed files with 18 additions and 17 deletions

View File

@ -3,7 +3,7 @@
; the Commodore 1351 mouse users guide. ; the Commodore 1351 mouse users guide.
; ;
; 2009-09-26, Ullrich von Bassewitz ; 2009-09-26, Ullrich von Bassewitz
; 2014-03-15, Greg King ; 2014-03-17, Greg King
; ;
.include "zeropage.inc" .include "zeropage.inc"
@ -97,8 +97,8 @@ INIT_save: .res 1
.word SCREEN_WIDTH/2 ; XPos .word SCREEN_WIDTH/2 ; XPos
.word 0 ; XMin .word 0 ; XMin
.word 0 ; YMin .word 0 ; YMin
.word SCREEN_WIDTH ; XMax .word SCREEN_WIDTH - 1 ; XMax
.word SCREEN_HEIGHT ; YMax .word SCREEN_HEIGHT - 1 ; YMax
.endproc .endproc
.code .code

View File

@ -2,7 +2,7 @@
; Driver for a "joystick mouse". ; Driver for a "joystick mouse".
; ;
; 2009-09-26, Ullrich von Bassewitz ; 2009-09-26, Ullrich von Bassewitz
; 2014-03-15, Greg King ; 2014-03-17, Greg King
; ;
.include "zeropage.inc" .include "zeropage.inc"
@ -102,8 +102,8 @@ Temp: .res 1
.word SCREEN_WIDTH/2 ; XPos .word SCREEN_WIDTH/2 ; XPos
.word 0 ; XMin .word 0 ; XMin
.word 0 ; YMin .word 0 ; YMin
.word SCREEN_WIDTH ; XMax .word SCREEN_WIDTH - 1 ; XMax
.word SCREEN_HEIGHT ; YMax .word SCREEN_HEIGHT - 1 ; YMax
.byte 0 ; Buttons .byte 0 ; Buttons
.endproc .endproc

View File

@ -3,7 +3,7 @@
; ;
; 2006-08-20, Stefan Haubenthal ; 2006-08-20, Stefan Haubenthal
; 2009-09-26, Ullrich von Bassewitz ; 2009-09-26, Ullrich von Bassewitz
; 2014-03-15, Greg King ; 2014-03-17, Greg King
; ;
.include "zeropage.inc" .include "zeropage.inc"
@ -99,8 +99,8 @@ Temp: .res 1
.word SCREEN_WIDTH/2 ; XPos .word SCREEN_WIDTH/2 ; XPos
.word 0 ; XMin .word 0 ; XMin
.word 0 ; YMin .word 0 ; YMin
.word SCREEN_WIDTH ; XMax .word SCREEN_WIDTH - 1 ; XMax
.word SCREEN_HEIGHT ; YMax .word SCREEN_HEIGHT - 1 ; YMax
.byte 0 ; Buttons .byte 0 ; Buttons
.endproc .endproc

View File

@ -2,7 +2,7 @@
; Driver for a "joystick mouse". ; Driver for a "joystick mouse".
; ;
; Ullrich von Bassewitz, 2004-03-29, 2009-09-26 ; Ullrich von Bassewitz, 2004-03-29, 2009-09-26
; 2010-02-08, Greg King ; 2014-03-17, Greg King
; ;
; The driver prevents the keyboard from interfering by changing the ; The driver prevents the keyboard from interfering by changing the
; keyboard's output port into an input port while the driver reads its ; keyboard's output port into an input port while the driver reads its
@ -118,8 +118,8 @@ Temp: .res 1
.word SCREEN_WIDTH/2 ; XPos .word SCREEN_WIDTH/2 ; XPos
.word 0 ; XMin .word 0 ; XMin
.word 0 ; YMin .word 0 ; YMin
.word SCREEN_WIDTH ; XMax .word SCREEN_WIDTH - 1 ; XMax
.word SCREEN_HEIGHT ; YMax .word SCREEN_HEIGHT - 1 ; YMax
.byte 0 ; Buttons .byte 0 ; Buttons
.endproc .endproc

View File

@ -1,8 +1,9 @@
; ;
; Driver for a potentiometer "mouse" e.g. Koala Pad ; Driver for a potentiometer "mouse", e.g. Koala Pad
; ;
; Ullrich von Bassewitz, 2004-03-29, 2009-09-26 ; 2006-08-20, Stefan Haubenthal
; Stefan Haubenthal, 2006-08-20 ; 2009-09-26, Ullrich von Bassewitz
; 2014-03-17, Greg King
; ;
.include "zeropage.inc" .include "zeropage.inc"
@ -96,8 +97,8 @@ Temp: .res 1
.word SCREEN_WIDTH/2 ; XPos .word SCREEN_WIDTH/2 ; XPos
.word 0 ; XMin .word 0 ; XMin
.word 0 ; YMin .word 0 ; YMin
.word SCREEN_WIDTH ; XMax .word SCREEN_WIDTH - 1 ; XMax
.word SCREEN_HEIGHT ; YMax .word SCREEN_HEIGHT - 1 ; YMax
.byte 0 ; Buttons .byte 0 ; Buttons
.endproc .endproc