
Table 8-2: Determining the Direction of the Mouse
Previous Current Direction
Count Count
200 100 Up (Left)
100 200 Down (Right)
200 45 Down *
45 200 Up **
NOTES FOR Table 8-1:
* Because 200-45 = 155, which is more than 127, the true count must be 255 - ( 200-45)
= 100; the direction is down.
** 45-200 = -155. Because the absolute value of -155 exceeds 127, the true count must
be 255 + (-155) = 100; the direction is up.
MOUSE BUTTONS
There are two buttons on the standard Amiga mouse. However, the control circuitry and
software support up to three buttons.
o The left button on the Amiga mouse is connected to, CIAAPRA ($BFE001). The button
for port 1 is connected to bit 6, port 2 is connected to bit 7. See the 8520 Appendix for
more information. A logic state of 1 means "switch open." A logic state of 0 means "switch
closed."
o Button 2 (right button on Amiga mouse) is connected to pin 9 of the controller ports,
one of the proportional pins. See "DIGITAL INPUT/OUTPUT ON THE CONTROLLER PORT"
for details.
o Button 3, when used, is connected to pin 5, the other proportional controller input.
READING DIGITAL JOYSTICK CONTROLLERS
Digital joysticks contain four directional switches. Each switch can be individually activated
by the control stick. When the stick is pressed diagonally, two adjacent switches are
activated. The total number of possible directions from a digital joystick is 8. All digital
joysticks have at least one fire button.
- 226 Interface Hardware -
Summary of Contents for Amiga A1000
Page 1: ...AMIGA HARDWARE REFERENCE MANUAL 1992 Commodore Business Machines Amiga 1200 PAL...
Page 20: ...Figure 1 1 Block Diagram for the Amiga Computer Family Introduction 11...
Page 21: ...12 Introduction...
Page 72: ...Figure 3 12 A dual Playfield display Playfield Hardware 63...
Page 87: ...Figure 3 24 Horizontal Scrolling 78 playfield hardware...
Page 101: ...92 Playfield Hardware...
Page 199: ...Figure 6 9 DMA time slot allocation 190 Blitter hardware...
Page 203: ...Figure 6 13 Blitter Block Diagram 194 Blitter Hardware...
Page 229: ...220 System Control Hardware...
Page 246: ...Figure 8 8 Chinon Timing diagram cont Interface Hardware 237...
Page 265: ...256 Interface Hardware...
Page 289: ...280 Appendix A...
Page 297: ...288 Appendix B...
Page 298: ...APPENDIX C CUSTOM CHIP PIN ALLOCATION LIST NOTE Means an active low signal Appendix C 289...
Page 302: ...APPENDIX D SYSTEM MEMORY MAP Appendix D 293...
Page 343: ...334 Appendix F...
Page 351: ...342 Appendix G...
Page 361: ...352 Appendix H...
Page 367: ...358 Appendix I...