
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 -
Содержание Amiga A1000
Страница 1: ...AMIGA HARDWARE REFERENCE MANUAL 1992 Commodore Business Machines Amiga 1200 PAL...
Страница 20: ...Figure 1 1 Block Diagram for the Amiga Computer Family Introduction 11...
Страница 21: ...12 Introduction...
Страница 72: ...Figure 3 12 A dual Playfield display Playfield Hardware 63...
Страница 87: ...Figure 3 24 Horizontal Scrolling 78 playfield hardware...
Страница 101: ...92 Playfield Hardware...
Страница 199: ...Figure 6 9 DMA time slot allocation 190 Blitter hardware...
Страница 203: ...Figure 6 13 Blitter Block Diagram 194 Blitter Hardware...
Страница 229: ...220 System Control Hardware...
Страница 246: ...Figure 8 8 Chinon Timing diagram cont Interface Hardware 237...
Страница 265: ...256 Interface Hardware...
Страница 289: ...280 Appendix A...
Страница 297: ...288 Appendix B...
Страница 298: ...APPENDIX C CUSTOM CHIP PIN ALLOCATION LIST NOTE Means an active low signal Appendix C 289...
Страница 302: ...APPENDIX D SYSTEM MEMORY MAP Appendix D 293...
Страница 343: ...334 Appendix F...
Страница 351: ...342 Appendix G...
Страница 361: ...352 Appendix H...
Страница 367: ...358 Appendix I...