[comp.sys.amiga] Judge not lest ye be judged.

robinson@renoir.Berkeley.EDU (Michael Robinson) (05/25/87)

In article <1183@charon.unm.edu>, hansb@ariel.UUCP (Hans Bechtel) writes:
>I have found the left button's location, $BFE001, but the MANUAL
                                                   ^^^^^^^^^^^^^^
>does not mention the right button even once.  There is another location,
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>$BFD100, that mentions /sel0 /sel1 /sel2 /sel3, but absolutely no
>documentation on what they are expecting.

In the Addison/Weseley Amiga Hardware Reference Manual, Commodore/Amiga writes:

pp. 219
    "Button 2 (right button on Amiga mouse) is connected to pin 9 of the
     controller ports.  See `Reading Proportional Controllers' for more
     information.  High resistance indicates  `switch open.'  Low
     resistance indicates `switch closed.'

pp. 222 (extensively edited)
     "Pin      Mouse      Proportional Joystick
       9      Button 2          POT Y           "

pp. A-9
    POT0DAT   012   R   P   Pot counter data left pair (vert, horiz)
    POT0DAT   014   R   P   Pot counter data right pair (vert, horiz)
    ...
    BIT#  15,14,13,12,10,09,08  07,06,05,04,03,02,01,00
    ----- --------------------- ------------------------
    LEFT  Y6 Y5 Y4 Y3 Y2 Y1 Y0  X7 X6 X5 X4 X3 X2 X1 X0 


The position of the right mouse button thus may be read at the
byte at $DFF012, assuming POTGO has been properly issued.

------------------------------------------------------------------------------
         "If you study the logistics and heuristics of the mystics,
          You will find that their minds rarely move in a line"

              "The Ranger isn't going to like it, Yogi."

Mike Robinson                                 USENET:  ucbvax!ernie!robinson
                                              ARPA: robinson@ernie.berkeley.edu