4.115
Last change
on this file since 8950204 was
8950204,
checked in by Daniel Ramirez <javamonn@…>, on 12/19/13 at 04:58:53
|
libtests/uid01: Fix Copyright information
|
-
Property mode set to
100644
|
File size:
983 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2013 Daniel Ramirez <javamonn@gmail.com> |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.com/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #ifdef HAVE_CONFIG_H |
---|
10 | #include "config.h" |
---|
11 | #endif |
---|
12 | |
---|
13 | #include <sys/types.h> |
---|
14 | |
---|
15 | const char *Mouse_Type_Long = "Microsoft Mouse"; |
---|
16 | const char *Mouse_Type_Short = "ms"; |
---|
17 | |
---|
18 | #define PRESSED 1 |
---|
19 | #define NOT_PRESSED 0 |
---|
20 | |
---|
21 | #define MS_MOUSE_BYTES( _lb, _rb, _x, _y ) \ |
---|
22 | (0x40 | ((_lb) ? 0x20 : 0x00) | ((_rb) ? 0x10 : 0x00) | \ |
---|
23 | ((_y & 0xC) >> 4) | (_x >> 6)), \ |
---|
24 | (_x & 0x3F), \ |
---|
25 | (_y & 0x3F) |
---|
26 | |
---|
27 | const unsigned char Mouse_Actions[] = { |
---|
28 | MS_MOUSE_BYTES( PRESSED, NOT_PRESSED, 1, 2), |
---|
29 | MS_MOUSE_BYTES( NOT_PRESSED, PRESSED, 1, 2), |
---|
30 | MS_MOUSE_BYTES( NOT_PRESSED, NOT_PRESSED, 0xff, 2), |
---|
31 | MS_MOUSE_BYTES( NOT_PRESSED, NOT_PRESSED, 1, 0xff) |
---|
32 | }; |
---|
33 | |
---|
34 | const size_t Mouse_Actions_Size = sizeof(Mouse_Actions); |
---|
35 | const size_t Mouse_Actions_Per_Iteration = 3; |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.