5 #define PM_MSG_RAWMOUSE 2
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
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
);