Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!ames!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: non-fatal Bug in include file devices/inputevent.h Message-ID: <8706090250.AA22685@cory.Berkeley.EDU> Date: Mon, 8-Jun-87 22:50:35 EDT Article-I.D.: cory.8706090250.AA22685 Posted: Mon Jun 8 22:50:35 1987 Date-Received: Thu, 11-Jun-87 06:10:09 EDT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 21 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