5 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 Desc: Include for the mouse native HIDD.
12 #define __OOP_NOMETHODBASES__
14 #include <exec/libraries.h>
16 #include <exec/semaphores.h>
17 #include <hidd/mouse.h>
21 /* defines for buttonstate */
24 #define RIGHT_BUTTON 2
25 #define MIDDLE_BUTTON 4
27 #define INTELLIMOUSE_SUPPORT 1
29 #define PS2_PROTOCOL_STANDARD 0
30 #define PS2_PROTOCOL_INTELLIMOUSE 1
32 /***** Mouse HIDD *******************/
36 VOID (*mouse_callback
)(APTR
, struct pHidd_Mouse_Event
*);
42 UBYTE mouse_collected_bytes
;
44 UBYTE mouse_packetsize
;
45 UBYTE expected_mouse_acks
;
48 struct pHidd_Mouse_Event event
;
51 /****************************************************************************************/
53 #define KBD_OUTCMD_SET_RES 0xE8
54 #define KBD_OUTCMD_SET_SCALE11 0xE6
55 #define KBD_OUTCMD_SET_SCALE21 0xE7
56 #define KBD_OUTCMD_STATUS_REQUEST 0xE9
57 #define KBD_OUTCMD_SET_STREAM_MODE 0xEA
58 #define KBD_OUTCMD_READ_DATA 0xEB
59 #define KBD_OUTCMD_SET_REMOTE_MODE 0xF0
60 #define KBD_OUTCMD_GET_ID 0xF2
61 #define KBD_OUTCMD_SET_RATE 0xF3
62 #define KBD_OUTCMD_SET_STREAM 0xEA
63 #define KBD_OUTCMD_ENABLE 0xF4
64 #define KBD_OUTCMD_DISABLE 0xF5
65 #define KBD_OUTCMD_RESET 0xFF
67 /****************************************************************************************/