summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/console/mouse_parser.h
blob: 7956a145996287eececfb8806a5f0f00ec51be55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __mouse_parser_h__
#define __mouse_parser_h__

#include <rtems/mw_uid.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Use the same definitions as the user interface */
#define RBUTTON      MV_BUTTON_RIGHT  
#define MBUTTON      MV_BUTTON_CENTER 
#define LBUTTON      MV_BUTTON_LEFT   

typedef int		         COORD;		/* device coordinates*/
typedef unsigned int	   BUTTON;		/* mouse button mask*/

/* local routines */
int  	   MOU_Init();
int      MOU_Data( int ch, COORD *dx, COORD *dy, COORD *dz, BUTTON *bptr );

/* Mouse Interface */
void register_mou_msg_queue( char * qname, int port );
void unregister_mou_msg_queue( int port );

/* KBD Interface */
void register_kbd_msg_queue( char *qname, int port );
void unregister_kbd_msg_queue( int port );

#ifdef __cplusplus
}
#endif


#endif /*  __mouse_parser_h__  */