VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/vmsvga/vmmouse_defs.h@ 82254

Last change on this file since 82254 was 76565, checked in by vboxsync, 6 years ago

Devices: Use VBOX_INCLUDED_SRC_ as header guard prefix with scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/**********************************************************
2 * Copyright 2002-2009 VMware, Inc. All rights reserved.
3 *
4 * Permission is hereby granted, free of charge, to any person
5 * obtaining a copy of this software and associated documentation
6 * files (the "Software"), to deal in the Software without
7 * restriction, including without limitation the rights to use, copy,
8 * modify, merge, publish, distribute, sublicense, and/or sell copies
9 * of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
19 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 *
24 **********************************************************/
25
26/*
27 * vmmouse_defs.h --
28 *
29 * VMware Virtual Mouse Protocol definitions.
30 *
31 */
32
33#ifndef _VMMOUSE_DEFS_H_
34#define _VMMOUSE_DEFS_H_
35#ifndef RT_WITHOUT_PRAGMA_ONCE
36# pragma once
37#endif
38
39/*
40 * Command related defines
41 */
42#define VMMOUSE_CMD_READ_ID 0x45414552
43#define VMMOUSE_CMD_DISABLE 0x000000f5
44#define VMMOUSE_CMD_REQUEST_RELATIVE 0x4c455252
45#define VMMOUSE_CMD_REQUEST_ABSOLUTE 0x53424152
46
47/*
48 * Data related defines
49 */
50#define VMMOUSE_VERSION_ID_STR "JUB4"
51#define VMMOUSE_VERSION_ID 0x3442554a
52
53/*
54 * Device related defines
55 */
56#define VMMOUSE_DATAPORT 96
57#define VMMOUSE_STATUSPORT 100
58#define VMMOUSE_IRQ 12
59#define VMMOUSE_ERROR 0xffff0000
60
61/*
62 * VMMouse Input packet flags
63 */
64#define VMMOUSE_MOVE_RELATIVE 1
65#define VMMOUSE_MOVE_ABSOLUTE 0
66
67/*
68 * VMMouse Input button flags
69 */
70#define VMMOUSE_LEFT_BUTTON 0x20
71#define VMMOUSE_RIGHT_BUTTON 0x10
72#define VMMOUSE_MIDDLE_BUTTON 0x08
73
74#endif /* !_VMMOUSE_DEFS_H_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette