Re: [PATCH] m68k: Fix atarimouse init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Schmitz <schmitz@xxxxxxxxxxxxxxxxxxxxxxxxxx> writes:

Hi Geert,

The kernel says (ARAnyM, windowed mode):
| Reseting weird mouse packet: 942, 379, 0
| Reseting weird mouse packet: 943, 379, 0
| Reseting weird mouse packet: 945, 378, 0
| Reseting weird mouse packet: 948, 378, 0
| Reseting weird mouse packet: 956, 376, 0

These messages come from ARAnyM.


When running X under ARAnyM (depth 16), some shortcomings show up:
  - up and down are interchanged (works fine when rolling the mouse over the
    bottom surface of the table --- old arabic map style ;-)

Weird - the inversion of the y direction increment is taken from the old 
busmouse driver code where it used to work OK. The point of reference is set to 
be at the top of the 'screen' so moving the mouse down ought to generate 
positive increments.

ARAnyM's emulation of the IKBD does not support changing the y origin.

  - the left and right mouse button are interchanged

The busmouse driver had no annotation as to the semantics of the buttons so O 
guessed bit 0 was for the left button. Guessed wrong, it seems.

Note that the mouse button bits are also inverted, ie. 0 means down.

  - the middle mouse button is dead

As is expexcted - the original code was for a two-button mouse only. If Petr 
knows what the ikbd format for the third button is (on real hardware) it's easy 
to add that in.

The IKBD does not support more than two buttons.  For a three button
mouse the middle button was apparently wired to the joystick port.

See also <http://dev-docs.atariforge.org/files/ikbd_Prot_2-26-1985.pdf>.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@xxxxxxx
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux