]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
f57387d5 HT |
3 | Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | SimplePointer.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Simple Pointer protocol from the EFI 1.1 specification.\r | |
19 | \r | |
20 | Abstraction of a very simple pointer device like a mice or tracekballs.\r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | #ifndef _SIMPLE_POINTER_H_\r | |
25 | #define _SIMPLE_POINTER_H_\r | |
26 | \r | |
27 | #define EFI_SIMPLE_POINTER_PROTOCOL_GUID \\r | |
28 | { \\r | |
7ccf38a3 | 29 | 0x31878c87, 0xb75, 0x11d5, {0x9a, 0x4f, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d} \\r |
3eb9473e | 30 | }\r |
31 | \r | |
32 | EFI_FORWARD_DECLARATION (EFI_SIMPLE_POINTER_PROTOCOL);\r | |
33 | \r | |
34 | //\r | |
35 | // Data structures\r | |
36 | //\r | |
37 | typedef struct {\r | |
38 | INT32 RelativeMovementX;\r | |
39 | INT32 RelativeMovementY;\r | |
40 | INT32 RelativeMovementZ;\r | |
41 | BOOLEAN LeftButton;\r | |
42 | BOOLEAN RightButton;\r | |
43 | } EFI_SIMPLE_POINTER_STATE;\r | |
44 | \r | |
45 | typedef struct {\r | |
46 | UINT64 ResolutionX;\r | |
47 | UINT64 ResolutionY;\r | |
48 | UINT64 ResolutionZ;\r | |
49 | BOOLEAN LeftButton;\r | |
50 | BOOLEAN RightButton;\r | |
51 | } EFI_SIMPLE_POINTER_MODE;\r | |
52 | \r | |
53 | typedef\r | |
54 | EFI_STATUS\r | |
55 | (EFIAPI *EFI_SIMPLE_POINTER_RESET) (\r | |
56 | IN EFI_SIMPLE_POINTER_PROTOCOL * This,\r | |
57 | IN BOOLEAN ExtendedVerification\r | |
58 | );\r | |
59 | \r | |
60 | typedef\r | |
61 | EFI_STATUS\r | |
62 | (EFIAPI *EFI_SIMPLE_POINTER_GET_STATE) (\r | |
63 | IN EFI_SIMPLE_POINTER_PROTOCOL * This,\r | |
64 | IN OUT EFI_SIMPLE_POINTER_STATE * State\r | |
65 | );\r | |
66 | \r | |
e5bce275 | 67 | struct _EFI_SIMPLE_POINTER_PROTOCOL {\r |
3eb9473e | 68 | EFI_SIMPLE_POINTER_RESET Reset;\r |
69 | EFI_SIMPLE_POINTER_GET_STATE GetState;\r | |
70 | EFI_EVENT WaitForInput;\r | |
71 | EFI_SIMPLE_POINTER_MODE *Mode;\r | |
e5bce275 | 72 | };\r |
3eb9473e | 73 | \r |
74 | extern EFI_GUID gEfiSimplePointerProtocolGuid;\r | |
75 | \r | |
76 | #endif\r |