Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / hidds / mouse / include / mouse.h
blob58b5cb1cccd0dbd0bfd7f638951c04c3b90e8f04
1 #ifndef HIDD_MOUSE_H
2 #define HIDD_MOUSE_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Include for the mouse hidd.
9 Lang: English.
12 #ifndef OOP_OOP_H
13 # include <oop/oop.h>
14 #endif
16 #define IID_Hidd_Mouse "hidd.mouse"
18 #define HiddMouseAB __abHidd_Mouse
20 #ifndef __OOP_NOATTRBASES__
21 extern OOP_AttrBase HiddMouseAB;
22 #endif
24 /* Attrs */
26 enum {
28 aoHidd_Mouse_IrqHandler,
29 aoHidd_Mouse_IrqHandlerData,
30 aoHidd_Mouse_State,
31 aoHidd_Mouse_RelativeCoords,
33 num_Hidd_Mouse_Attrs
39 #define aHidd_Mouse_IrqHandler (aoHidd_Mouse_IrqHandler + HiddMouseAB)
40 #define aHidd_Mouse_IrqHandlerData (aoHidd_Mouse_IrqHandlerData + HiddMouseAB)
41 #define aHidd_Mouse_State (aoHidd_Mouse_State + HiddMouseAB)
42 #define aHidd_Mouse_RelativeCoords (aoHidd_Mouse_RelativeCoords + HiddMouseAB)
44 #define IS_HIDDMOUSE_ATTR(attr, idx) IS_IF_ATTR(attr, idx, HiddMouseAB, num_Hidd_Mouse_Attrs)
46 /* Parameter values for the IRQ handler */
48 struct pHidd_Mouse_Event
50 UWORD button;
51 WORD x;
52 WORD y;
53 UWORD type; /* See below */
56 enum {
57 vHidd_Mouse_Press,
58 vHidd_Mouse_Release,
59 vHidd_Mouse_Motion,
60 vHidd_Mouse_WheelMotion
63 enum {
64 vHidd_Mouse_NoButton,
65 vHidd_Mouse_Button1,
66 vHidd_Mouse_Button2,
67 vHidd_Mouse_Button3
70 #endif /* HIDD_MOUSE_H */