Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / popupmenu / pminput.h
blob4c1aa081c3781a1001bc23e1f2ebefc666ea1641
1 #ifndef PM_INPUT_H
2 #define PM_INPUT_H
4 #define PM_MSG_TIMER 1
5 #define PM_MSG_RAWMOUSE 2
6 #define PM_MSG_DOWN 3
7 #define PM_MSG_UP 4
8 #define PM_MSG_SELECT 5
9 #define PM_MSG_MULTISELECT 6
10 #define PM_MSG_TERMINATE 7
11 #define PM_MSG_OPENSUB 8
12 #define PM_MSG_CLOSESUB 9
13 #define PM_MSG_DEBUGINFO 10
15 struct PM_InpMsg {
16 struct Message msg; // Message struct
17 UWORD Kind; // Kind of message
18 UWORD Code; // InputEvent code
19 UWORD Qual; // Qualifier
20 UWORD Res; // Reserved
24 struct PM_InputHandler {
25 struct MsgPort *mp; // Replyport
26 struct MsgPort *port; // Port for input events
27 struct IOStdReq *ior; // IO Request
28 struct Interrupt intr; // Interrupt structure
29 int error; // OpenDevice error
32 void PM_RemoveHandler(struct PM_InputHandler *pmh);
33 struct PM_InputHandler *PM_InstallHandler(int pri);
35 #endif