RTEMS 6.1-rc2
Loading...
Searching...
No Matches
mouse_parser.h
Go to the documentation of this file.
1
9/*
10 * This file is derived from a UNIX Serial Port Mouse Driver with the
11 * following notice:
12 *
13 * ==================================================================
14 * Copyright (c) 1999 Greg Haerr <greg@censoft.com>
15 * Portions Copyright (c) 1991 David I. Bell
16 * Permission is granted to use, distribute, or modify this source,
17 * provided that this copyright notice remains intact.
18 *
19 * UNIX Serial Port Mouse Driver
20 *
21 * This driver opens a serial port directly, and interprets serial data.
22 * Microsoft, PC, Logitech and PS/2 mice are supported. The PS/2 mouse
23 * is only supported if the OS runs the mouse byte codes through the
24 * serial port.
25 *
26 * Mouse Types Supported: pc ms, logi, ps2
27 * ==================================================================
28 *
29 * It has been modified to support the concept of being just a parser
30 * fed data from an arbitrary source. It is independent of either
31 * a PS/2 driver or a serial port.
32 *
33 * It was moved to cpukit/libmisc/mouse by Joel Sherrill.
34 */
35
36#ifndef __MOUSE_PARSER_h__
37#define __MOUSE_PARSER_h__
38
39#include <rtems/mw_uid.h>
40
47#ifdef __cplusplus
48extern "C" {
49#endif
50
56#define RBUTTON MV_BUTTON_RIGHT
57
63#define MBUTTON MV_BUTTON_CENTER
64
70#define LBUTTON MV_BUTTON_LEFT
71
75typedef int COORD;
76
80typedef unsigned int BUTTON;
81
87typedef void (*mouse_parser_enqueue_handler)(unsigned char *, size_t);
88
100int mouse_parser_initialize(const char *type);
101
111 unsigned char *buffer,
112 size_t size
113);
114
115#ifdef __cplusplus
116}
117#endif
118
121#endif
unsigned int BUTTON
Definition: mouse_parser.h:80
int mouse_parser_initialize(const char *type)
Initialize the mouse parser engine.
Definition: mouse_parser.c:98
int COORD
Definition: mouse_parser.h:75
void mouse_parser_enqueue(unsigned char *buffer, size_t size)
Enqueue input to the mouse parser engine.
Definition: mouse_parser.c:296
void(* mouse_parser_enqueue_handler)(unsigned char *, size_t)
Definition: mouse_parser.h:87
Input Devices for MicroWindows.