[comp.sys.amiga] non-fatal Bug in include file devices/inputevent.h

dillon@CORY.BERKELEY.EDU (Matt Dillon) (06/09/87)

	In the 1.2 Gamma include files.  I don't know if it has been fixed
in the 1.2 include files.  Manx did fix it in the 3.4 release include files.
Basically, its two definitions:

#define IEQUALIFIER_LBUTTON	0x1000	/*	left button	*/
#define IEQUALIFIER_RBUTTON	0x2000	/*	right button	*/
#define IEQUALIFIER_MBUTTON	0x4000	/*	middle button	*/

	The MBUTTON and LBUTTON defines are backwards.... LBUTTON should
be 0x4000, and MBUTTON should be 0x1000.  Its non fatal because any
programmer using the defines will catch the bug (when his code for LBUTTON
is never executed).  Manx's include files remove the two defines alltogether
and replace them with IEQUALIFIER_LEFTBUTTON and IEQUALIFIER_MIDBUTTON with
the correct values (so nobody gets confused).

P.S. for those not familar with DEVICES/INPUTEVENT.H:  although the Amiga
mouse does not have a middle button, Intuition supports the eventuality that
some future mouse might.

				-Matt