1 /****************************************************************************
3 * SciTech Multi-platform Graphics Library
5 * ========================================================================
7 * The contents of this file are subject to the SciTech MGL Public
8 * License Version 1.0 (the "License"); you may not use this file
9 * except in compliance with the License. You may obtain a copy of
10 * the License at http://www.scitechsoft.com/mgl-license.txt
12 * Software distributed under the License is distributed on an
13 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
14 * implied. See the License for the specific language governing
15 * rights and limitations under the License.
17 * The Original Code is Copyright (C) 1991-1998 SciTech Software, Inc.
19 * The Initial Developer of the Original Code is SciTech Software, Inc.
20 * All Rights Reserved.
22 * ========================================================================
27 * Description: Include file to include all OS specific header files.
29 ****************************************************************************/
36 #include <sys/mouse.h>
37 #include <sys/keyboard.h>
41 #include <sys/dcmd_input.h>
43 /* Things 'borrowed' from photon/keycodes.h */
48 #define KEYMODBIT_SHIFT 0
49 #define KEYMODBIT_CTRL 1
50 #define KEYMODBIT_ALT 2
51 #define KEYMODBIT_ALTGR 3
52 #define KEYMODBIT_SHL3 4
53 #define KEYMODBIT_MOD6 5
54 #define KEYMODBIT_MOD7 6
55 #define KEYMODBIT_MOD8 7
57 #define KEYMODBIT_SHIFT_LOCK 8
58 #define KEYMODBIT_CTRL_LOCK 9
59 #define KEYMODBIT_ALT_LOCK 10
60 #define KEYMODBIT_ALTGR_LOCK 11
61 #define KEYMODBIT_SHL3_LOCK 12
62 #define KEYMODBIT_MOD6_LOCK 13
63 #define KEYMODBIT_MOD7_LOCK 14
64 #define KEYMODBIT_MOD8_LOCK 15
66 #define KEYMODBIT_CAPS_LOCK 16
67 #define KEYMODBIT_NUM_LOCK 17
68 #define KEYMODBIT_SCROLL_LOCK 18
70 #define KEYMOD_SHIFT (1 << KEYMODBIT_SHIFT)
71 #define KEYMOD_CTRL (1 << KEYMODBIT_CTRL)
72 #define KEYMOD_ALT (1 << KEYMODBIT_ALT)
73 #define KEYMOD_ALTGR (1 << KEYMODBIT_ALTGR)
74 #define KEYMOD_SHL3 (1 << KEYMODBIT_SHL3)
75 #define KEYMOD_MOD6 (1 << KEYMODBIT_MOD6)
76 #define KEYMOD_MOD7 (1 << KEYMODBIT_MOD7)
77 #define KEYMOD_MOD8 (1 << KEYMODBIT_MOD8)
79 #define KEYMOD_SHIFT_LOCK (1 << KEYMODBIT_SHIFT_LOCK)
80 #define KEYMOD_CTRL_LOCK (1 << KEYMODBIT_CTRL_LOCK)
81 #define KEYMOD_ALT_LOCK (1 << KEYMODBIT_ALT_LOCK)
82 #define KEYMOD_ALTGR_LOCK (1 << KEYMODBIT_ALTGR_LOCK)
83 #define KEYMOD_SHL3_LOCK (1 << KEYMODBIT_SHL3_LOCK)
84 #define KEYMOD_MOD6_LOCK (1 << KEYMODBIT_MOD6_LOCK)
85 #define KEYMOD_MOD7_LOCK (1 << KEYMODBIT_MOD7_LOCK)
86 #define KEYMOD_MOD8_LOCK (1 << KEYMODBIT_MOD8_LOCK)
88 #define KEYMOD_CAPS_LOCK (1 << KEYMODBIT_CAPS_LOCK)
89 #define KEYMOD_NUM_LOCK (1 << KEYMODBIT_NUM_LOCK)
90 #define KEYMOD_SCROLL_LOCK (1 << KEYMODBIT_SCROLL_LOCK)
95 #define KEY_DOWN 0x00000001 /* Key was pressed down */
96 #define KEY_REPEAT 0x00000002 /* Key was repeated */
97 #define KEY_SCAN_VALID 0x00000020 /* Scancode is valid */
98 #define KEY_SYM_VALID 0x00000040 /* Key symbol is valid */
99 #define KEY_CAP_VALID 0x00000080 /* Key cap is valid */
100 #define KEY_DEAD 0x40000000 /* Key symbol is a DEAD key */
101 #define KEY_OEM_CAP 0x80000000 /* Key cap is an OEM scan code from keyboard */
103 #endif /* __QNXNTO__ */