1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreInput.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
4 | <link type="text/css" rel="stylesheet" href="style.css"> |
---|
5 | </head> |
---|
6 | |
---|
7 | <body> |
---|
8 | <!-- Generated by Doxygen 1.3.6 --> |
---|
9 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
---|
10 | <h1>OgreInput.h</h1><a href="OgreInput_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> |
---|
11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
13 | 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> |
---|
14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
15 | 00006 <span class="comment"></span> |
---|
16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
18 | 00009 <span class="comment"></span> |
---|
19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
22 | 00013 <span class="comment">version.</span> |
---|
23 | 00014 <span class="comment"></span> |
---|
24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
27 | 00018 <span class="comment"></span> |
---|
28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
33 | 00024 <span class="comment">*/</span> |
---|
34 | 00025 <span class="preprocessor">#ifndef __Input_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define __Input_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span> |
---|
37 | 00028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
38 | 00029 |
---|
39 | 00030 <span class="keyword">namespace </span>Ogre { |
---|
40 | 00031 |
---|
41 | <a name="l00034"></a><a class="code" href="namespaceOgre.html#a662">00034</a> <span class="keyword">enum</span> <a class="code" href="namespaceOgre.html#a662">KeyCode</a> |
---|
42 | 00035 { |
---|
43 | 00036 <a class="code" href="namespaceOgre.html#a662a192">KC_ESCAPE</a> =0x01, |
---|
44 | 00037 <a class="code" href="namespaceOgre.html#a662a193">KC_1</a> =0x02, |
---|
45 | 00038 <a class="code" href="namespaceOgre.html#a662a194">KC_2</a> =0x03, |
---|
46 | 00039 <a class="code" href="namespaceOgre.html#a662a195">KC_3</a> =0x04, |
---|
47 | 00040 <a class="code" href="namespaceOgre.html#a662a196">KC_4</a> =0x05, |
---|
48 | 00041 <a class="code" href="namespaceOgre.html#a662a197">KC_5</a> =0x06, |
---|
49 | 00042 <a class="code" href="namespaceOgre.html#a662a198">KC_6</a> =0x07, |
---|
50 | 00043 <a class="code" href="namespaceOgre.html#a662a199">KC_7</a> =0x08, |
---|
51 | 00044 <a class="code" href="namespaceOgre.html#a662a200">KC_8</a> =0x09, |
---|
52 | 00045 <a class="code" href="namespaceOgre.html#a662a201">KC_9</a> =0x0A, |
---|
53 | 00046 <a class="code" href="namespaceOgre.html#a662a202">KC_0</a> =0x0B, |
---|
54 | 00047 <a class="code" href="namespaceOgre.html#a662a203">KC_MINUS</a> =0x0C, <span class="comment">/* - on main keyboard */</span> |
---|
55 | 00048 <a class="code" href="namespaceOgre.html#a662a204">KC_EQUALS</a> =0x0D, |
---|
56 | 00049 <a class="code" href="namespaceOgre.html#a662a205">KC_BACK</a> =0x0E, <span class="comment">/* backspace */</span> |
---|
57 | 00050 <a class="code" href="namespaceOgre.html#a662a206">KC_TAB</a> =0x0F, |
---|
58 | 00051 <a class="code" href="namespaceOgre.html#a662a207">KC_Q</a> =0x10, |
---|
59 | 00052 <a class="code" href="namespaceOgre.html#a662a208">KC_W</a> =0x11, |
---|
60 | 00053 <a class="code" href="namespaceOgre.html#a662a209">KC_E</a> =0x12, |
---|
61 | 00054 <a class="code" href="namespaceOgre.html#a662a210">KC_R</a> =0x13, |
---|
62 | 00055 <a class="code" href="namespaceOgre.html#a662a211">KC_T</a> =0x14, |
---|
63 | 00056 <a class="code" href="namespaceOgre.html#a662a212">KC_Y</a> =0x15, |
---|
64 | 00057 <a class="code" href="namespaceOgre.html#a662a213">KC_U</a> =0x16, |
---|
65 | 00058 <a class="code" href="namespaceOgre.html#a662a214">KC_I</a> =0x17, |
---|
66 | 00059 <a class="code" href="namespaceOgre.html#a662a215">KC_O</a> =0x18, |
---|
67 | 00060 <a class="code" href="namespaceOgre.html#a662a216">KC_P</a> =0x19, |
---|
68 | 00061 <a class="code" href="namespaceOgre.html#a662a217">KC_LBRACKET</a> =0x1A, |
---|
69 | 00062 <a class="code" href="namespaceOgre.html#a662a218">KC_RBRACKET</a> =0x1B, |
---|
70 | 00063 <a class="code" href="namespaceOgre.html#a662a219">KC_RETURN</a> =0x1C, <span class="comment">/* Enter on main keyboard */</span> |
---|
71 | 00064 <a class="code" href="namespaceOgre.html#a662a220">KC_LCONTROL</a> =0x1D, |
---|
72 | 00065 <a class="code" href="namespaceOgre.html#a662a221">KC_A</a> =0x1E, |
---|
73 | 00066 <a class="code" href="namespaceOgre.html#a662a222">KC_S</a> =0x1F, |
---|
74 | 00067 <a class="code" href="namespaceOgre.html#a662a223">KC_D</a> =0x20, |
---|
75 | 00068 <a class="code" href="namespaceOgre.html#a662a224">KC_F</a> =0x21, |
---|
76 | 00069 <a class="code" href="namespaceOgre.html#a662a225">KC_G</a> =0x22, |
---|
77 | 00070 <a class="code" href="namespaceOgre.html#a662a226">KC_H</a> =0x23, |
---|
78 | 00071 <a class="code" href="namespaceOgre.html#a662a227">KC_J</a> =0x24, |
---|
79 | 00072 <a class="code" href="namespaceOgre.html#a662a228">KC_K</a> =0x25, |
---|
80 | 00073 <a class="code" href="namespaceOgre.html#a662a229">KC_L</a> =0x26, |
---|
81 | 00074 <a class="code" href="namespaceOgre.html#a662a230">KC_SEMICOLON</a> =0x27, |
---|
82 | 00075 <a class="code" href="namespaceOgre.html#a662a231">KC_APOSTROPHE</a> =0x28, |
---|
83 | 00076 <a class="code" href="namespaceOgre.html#a662a232">KC_GRAVE</a> =0x29, <span class="comment">/* accent grave */</span> |
---|
84 | 00077 <a class="code" href="namespaceOgre.html#a662a233">KC_LSHIFT</a> =0x2A, |
---|
85 | 00078 <a class="code" href="namespaceOgre.html#a662a234">KC_BACKSLASH</a> =0x2B, |
---|
86 | 00079 <a class="code" href="namespaceOgre.html#a662a235">KC_Z</a> =0x2C, |
---|
87 | 00080 <a class="code" href="namespaceOgre.html#a662a236">KC_X</a> =0x2D, |
---|
88 | 00081 <a class="code" href="namespaceOgre.html#a662a237">KC_C</a> =0x2E, |
---|
89 | 00082 <a class="code" href="namespaceOgre.html#a662a238">KC_V</a> =0x2F, |
---|
90 | 00083 <a class="code" href="namespaceOgre.html#a662a239">KC_B</a> =0x30, |
---|
91 | 00084 <a class="code" href="namespaceOgre.html#a662a240">KC_N</a> =0x31, |
---|
92 | 00085 <a class="code" href="namespaceOgre.html#a662a241">KC_M</a> =0x32, |
---|
93 | 00086 <a class="code" href="namespaceOgre.html#a662a242">KC_COMMA</a> =0x33, |
---|
94 | 00087 <a class="code" href="namespaceOgre.html#a662a243">KC_PERIOD</a> =0x34, <span class="comment">/* . on main keyboard */</span> |
---|
95 | 00088 <a class="code" href="namespaceOgre.html#a662a244">KC_SLASH</a> =0x35, <span class="comment">/* '/' on main keyboard */</span> |
---|
96 | 00089 <a class="code" href="namespaceOgre.html#a662a245">KC_RSHIFT</a> =0x36, |
---|
97 | 00090 <a class="code" href="namespaceOgre.html#a662a246">KC_MULTIPLY</a> =0x37, <span class="comment">/* * on numeric keypad */</span> |
---|
98 | 00091 <a class="code" href="namespaceOgre.html#a662a247">KC_LMENU</a> =0x38, <span class="comment">/* left Alt */</span> |
---|
99 | 00092 <a class="code" href="namespaceOgre.html#a662a248">KC_SPACE</a> =0x39, |
---|
100 | 00093 <a class="code" href="namespaceOgre.html#a662a249">KC_CAPITAL</a> =0x3A, |
---|
101 | 00094 <a class="code" href="namespaceOgre.html#a662a250">KC_F1</a> =0x3B, |
---|
102 | 00095 <a class="code" href="namespaceOgre.html#a662a251">KC_F2</a> =0x3C, |
---|
103 | 00096 <a class="code" href="namespaceOgre.html#a662a252">KC_F3</a> =0x3D, |
---|
104 | 00097 <a class="code" href="namespaceOgre.html#a662a253">KC_F4</a> =0x3E, |
---|
105 | 00098 <a class="code" href="namespaceOgre.html#a662a254">KC_F5</a> =0x3F, |
---|
106 | 00099 <a class="code" href="namespaceOgre.html#a662a255">KC_F6</a> =0x40, |
---|
107 | 00100 <a class="code" href="namespaceOgre.html#a662a256">KC_F7</a> =0x41, |
---|
108 | 00101 <a class="code" href="namespaceOgre.html#a662a257">KC_F8</a> =0x42, |
---|
109 | 00102 <a class="code" href="namespaceOgre.html#a662a258">KC_F9</a> =0x43, |
---|
110 | 00103 <a class="code" href="namespaceOgre.html#a662a259">KC_F10</a> =0x44, |
---|
111 | 00104 <a class="code" href="namespaceOgre.html#a662a260">KC_NUMLOCK</a> =0x45, |
---|
112 | 00105 <a class="code" href="namespaceOgre.html#a662a261">KC_SCROLL</a> =0x46, <span class="comment">/* Scroll Lock */</span> |
---|
113 | 00106 <a class="code" href="namespaceOgre.html#a662a262">KC_NUMPAD7</a> =0x47, |
---|
114 | 00107 <a class="code" href="namespaceOgre.html#a662a263">KC_NUMPAD8</a> =0x48, |
---|
115 | 00108 <a class="code" href="namespaceOgre.html#a662a264">KC_NUMPAD9</a> =0x49, |
---|
116 | 00109 <a class="code" href="namespaceOgre.html#a662a265">KC_SUBTRACT</a> =0x4A, <span class="comment">/* - on numeric keypad */</span> |
---|
117 | 00110 <a class="code" href="namespaceOgre.html#a662a266">KC_NUMPAD4</a> =0x4B, |
---|
118 | 00111 <a class="code" href="namespaceOgre.html#a662a267">KC_NUMPAD5</a> =0x4C, |
---|
119 | 00112 <a class="code" href="namespaceOgre.html#a662a268">KC_NUMPAD6</a> =0x4D, |
---|
120 | 00113 <a class="code" href="namespaceOgre.html#a662a269">KC_ADD</a> =0x4E, <span class="comment">/* + on numeric keypad */</span> |
---|
121 | 00114 <a class="code" href="namespaceOgre.html#a662a270">KC_NUMPAD1</a> =0x4F, |
---|
122 | 00115 <a class="code" href="namespaceOgre.html#a662a271">KC_NUMPAD2</a> =0x50, |
---|
123 | 00116 <a class="code" href="namespaceOgre.html#a662a272">KC_NUMPAD3</a> =0x51, |
---|
124 | 00117 <a class="code" href="namespaceOgre.html#a662a273">KC_NUMPAD0</a> =0x52, |
---|
125 | 00118 <a class="code" href="namespaceOgre.html#a662a274">KC_DECIMAL</a> =0x53, <span class="comment">/* . on numeric keypad */</span> |
---|
126 | 00119 <a class="code" href="namespaceOgre.html#a662a275">KC_OEM_102</a> =0x56, <span class="comment">/* < > | on UK/Germany keyboards */</span> |
---|
127 | 00120 <a class="code" href="namespaceOgre.html#a662a276">KC_F11</a> =0x57, |
---|
128 | 00121 <a class="code" href="namespaceOgre.html#a662a277">KC_F12</a> =0x58, |
---|
129 | 00122 <a class="code" href="namespaceOgre.html#a662a278">KC_F13</a> =0x64, <span class="comment">/* (NEC PC98) */</span> |
---|
130 | 00123 <a class="code" href="namespaceOgre.html#a662a279">KC_F14</a> =0x65, <span class="comment">/* (NEC PC98) */</span> |
---|
131 | 00124 <a class="code" href="namespaceOgre.html#a662a280">KC_F15</a> =0x66, <span class="comment">/* (NEC PC98) */</span> |
---|
132 | 00125 <a class="code" href="namespaceOgre.html#a662a281">KC_KANA</a> =0x70, <span class="comment">/* (Japanese keyboard) */</span> |
---|
133 | 00126 <a class="code" href="namespaceOgre.html#a662a282">KC_ABNT_C1</a> =0x73, <span class="comment">/* / ? on Portugese (Brazilian) keyboards */</span> |
---|
134 | 00127 <a class="code" href="namespaceOgre.html#a662a283">KC_CONVERT</a> =0x79, <span class="comment">/* (Japanese keyboard) */</span> |
---|
135 | 00128 <a class="code" href="namespaceOgre.html#a662a284">KC_NOCONVERT</a> =0x7B, <span class="comment">/* (Japanese keyboard) */</span> |
---|
136 | 00129 <a class="code" href="namespaceOgre.html#a662a285">KC_YEN</a> =0x7D, <span class="comment">/* (Japanese keyboard) */</span> |
---|
137 | 00130 <a class="code" href="namespaceOgre.html#a662a286">KC_ABNT_C2</a> =0x7E, <span class="comment">/* Numpad . on Portugese (Brazilian) keyboards */</span> |
---|
138 | 00131 <a class="code" href="namespaceOgre.html#a662a287">KC_NUMPADEQUALS</a> =0x8D, <span class="comment">/* = on numeric keypad (NEC PC98) */</span> |
---|
139 | 00132 <a class="code" href="namespaceOgre.html#a662a288">KC_PREVTRACK</a> =0x90, <span class="comment">/* Previous Track (KC_CIRCUMFLEX on Japanese keyboard) */</span> |
---|
140 | 00133 <a class="code" href="namespaceOgre.html#a662a289">KC_AT</a> =0x91, <span class="comment">/* (NEC PC98) */</span> |
---|
141 | 00134 <a class="code" href="namespaceOgre.html#a662a290">KC_COLON</a> =0x92, <span class="comment">/* (NEC PC98) */</span> |
---|
142 | 00135 <a class="code" href="namespaceOgre.html#a662a291">KC_UNDERLINE</a> =0x93, <span class="comment">/* (NEC PC98) */</span> |
---|
143 | 00136 <a class="code" href="namespaceOgre.html#a662a292">KC_KANJI</a> =0x94, <span class="comment">/* (Japanese keyboard) */</span> |
---|
144 | 00137 <a class="code" href="namespaceOgre.html#a662a293">KC_STOP</a> =0x95, <span class="comment">/* (NEC PC98) */</span> |
---|
145 | 00138 <a class="code" href="namespaceOgre.html#a662a294">KC_AX</a> =0x96, <span class="comment">/* (Japan AX) */</span> |
---|
146 | 00139 <a class="code" href="namespaceOgre.html#a662a295">KC_UNLABELED</a> =0x97, <span class="comment">/* (J3100) */</span> |
---|
147 | 00140 <a class="code" href="namespaceOgre.html#a662a296">KC_NEXTTRACK</a> =0x99, <span class="comment">/* Next Track */</span> |
---|
148 | 00141 <a class="code" href="namespaceOgre.html#a662a297">KC_NUMPADENTER</a> =0x9C, <span class="comment">/* Enter on numeric keypad */</span> |
---|
149 | 00142 <a class="code" href="namespaceOgre.html#a662a298">KC_RCONTROL</a> =0x9D, |
---|
150 | 00143 <a class="code" href="namespaceOgre.html#a662a299">KC_MUTE</a> =0xA0, <span class="comment">/* Mute */</span> |
---|
151 | 00144 <a class="code" href="namespaceOgre.html#a662a300">KC_CALCULATOR</a> =0xA1, <span class="comment">/* Calculator */</span> |
---|
152 | 00145 <a class="code" href="namespaceOgre.html#a662a301">KC_PLAYPAUSE</a> =0xA2, <span class="comment">/* Play / Pause */</span> |
---|
153 | 00146 <a class="code" href="namespaceOgre.html#a662a302">KC_MEDIASTOP</a> =0xA4, <span class="comment">/* Media Stop */</span> |
---|
154 | 00147 <a class="code" href="namespaceOgre.html#a662a303">KC_VOLUMEDOWN</a> =0xAE, <span class="comment">/* Volume - */</span> |
---|
155 | 00148 <a class="code" href="namespaceOgre.html#a662a304">KC_VOLUMEUP</a> =0xB0, <span class="comment">/* Volume + */</span> |
---|
156 | 00149 <a class="code" href="namespaceOgre.html#a662a305">KC_WEBHOME</a> =0xB2, <span class="comment">/* Web home */</span> |
---|
157 | 00150 <a class="code" href="namespaceOgre.html#a662a306">KC_NUMPADCOMMA</a> =0xB3, <span class="comment">/* , on numeric keypad (NEC PC98) */</span> |
---|
158 | 00151 <a class="code" href="namespaceOgre.html#a662a307">KC_DIVIDE</a> =0xB5, <span class="comment">/* / on numeric keypad */</span> |
---|
159 | 00152 <a class="code" href="namespaceOgre.html#a662a308">KC_SYSRQ</a> =0xB7, |
---|
160 | 00153 <a class="code" href="namespaceOgre.html#a662a309">KC_RMENU</a> =0xB8, <span class="comment">/* right Alt */</span> |
---|
161 | 00154 <a class="code" href="namespaceOgre.html#a662a310">KC_PAUSE</a> =0xC5, <span class="comment">/* Pause */</span> |
---|
162 | 00155 <a class="code" href="namespaceOgre.html#a662a311">KC_HOME</a> =0xC7, <span class="comment">/* Home on arrow keypad */</span> |
---|
163 | 00156 <a class="code" href="namespaceOgre.html#a662a312">KC_UP</a> =0xC8, <span class="comment">/* UpArrow on arrow keypad */</span> |
---|
164 | 00157 <a class="code" href="namespaceOgre.html#a662a313">KC_PGUP</a> =0xC9, <span class="comment">/* PgUp on arrow keypad */</span> |
---|
165 | 00158 <a class="code" href="namespaceOgre.html#a662a314">KC_LEFT</a> =0xCB, <span class="comment">/* LeftArrow on arrow keypad */</span> |
---|
166 | 00159 <a class="code" href="namespaceOgre.html#a662a315">KC_RIGHT</a> =0xCD, <span class="comment">/* RightArrow on arrow keypad */</span> |
---|
167 | 00160 <a class="code" href="namespaceOgre.html#a662a316">KC_END</a> =0xCF, <span class="comment">/* End on arrow keypad */</span> |
---|
168 | 00161 <a class="code" href="namespaceOgre.html#a662a317">KC_DOWN</a> =0xD0, <span class="comment">/* DownArrow on arrow keypad */</span> |
---|
169 | 00162 <a class="code" href="namespaceOgre.html#a662a318">KC_PGDOWN</a> =0xD1, <span class="comment">/* PgDn on arrow keypad */</span> |
---|
170 | 00163 <a class="code" href="namespaceOgre.html#a662a319">KC_INSERT</a> =0xD2, <span class="comment">/* Insert on arrow keypad */</span> |
---|
171 | 00164 <a class="code" href="namespaceOgre.html#a662a320">KC_DELETE</a> =0xD3, <span class="comment">/* Delete on arrow keypad */</span> |
---|
172 | 00165 <a class="code" href="namespaceOgre.html#a662a321">KC_LWIN</a> =0xDB, <span class="comment">/* Left Windows key */</span> |
---|
173 | 00166 <a class="code" href="namespaceOgre.html#a662a322">KC_RWIN</a> =0xDC, <span class="comment">/* Right Windows key */</span> |
---|
174 | 00167 <a class="code" href="namespaceOgre.html#a662a323">KC_APPS</a> =0xDD, <span class="comment">/* AppMenu key */</span> |
---|
175 | 00168 <a class="code" href="namespaceOgre.html#a662a324">KC_POWER</a> =0xDE, <span class="comment">/* System Power */</span> |
---|
176 | 00169 <a class="code" href="namespaceOgre.html#a662a325">KC_SLEEP</a> =0xDF, <span class="comment">/* System Sleep */</span> |
---|
177 | 00170 <a class="code" href="namespaceOgre.html#a662a326">KC_WAKE</a> =0xE3, <span class="comment">/* System Wake */</span> |
---|
178 | 00171 <a class="code" href="namespaceOgre.html#a662a327">KC_WEBSEARCH</a> =0xE5, <span class="comment">/* Web Search */</span> |
---|
179 | 00172 <a class="code" href="namespaceOgre.html#a662a328">KC_WEBFAVORITES</a> =0xE6, <span class="comment">/* Web Favorites */</span> |
---|
180 | 00173 <a class="code" href="namespaceOgre.html#a662a329">KC_WEBREFRESH</a> =0xE7, <span class="comment">/* Web Refresh */</span> |
---|
181 | 00174 <a class="code" href="namespaceOgre.html#a662a330">KC_WEBSTOP</a> =0xE8, <span class="comment">/* Web Stop */</span> |
---|
182 | 00175 <a class="code" href="namespaceOgre.html#a662a331">KC_WEBFORWARD</a> =0xE9, <span class="comment">/* Web Forward */</span> |
---|
183 | 00176 <a class="code" href="namespaceOgre.html#a662a332">KC_WEBBACK</a> =0xEA, <span class="comment">/* Web Back */</span> |
---|
184 | 00177 <a class="code" href="namespaceOgre.html#a662a333">KC_MYCOMPUTER</a> =0xEB, <span class="comment">/* My Computer */</span> |
---|
185 | 00178 <a class="code" href="namespaceOgre.html#a662a334">KC_MAIL</a> =0xEC, <span class="comment">/* Mail */</span> |
---|
186 | 00179 <a class="code" href="namespaceOgre.html#a662a335">KC_MEDIASELECT</a> =0xED <span class="comment">/* Media Select */</span> |
---|
187 | 00180 }; |
---|
188 | 00181 |
---|
189 | <a name="l00184"></a><a class="code" href="structOgre_1_1MouseState.html">00184</a> <span class="keyword">struct </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> MouseState |
---|
190 | 00185 { |
---|
191 | <a name="l00187"></a><a class="code" href="structOgre_1_1MouseState.html#Ogre_1_1MouseStateo2">00187</a> <span class="keywordtype">long</span> Xabs, Yabs, Zabs; |
---|
192 | <a name="l00189"></a><a class="code" href="structOgre_1_1MouseState.html#Ogre_1_1MouseStateo5">00189</a> <span class="keywordtype">long</span> Xrel, Yrel, Zrel; |
---|
193 | <a name="l00192"></a><a class="code" href="structOgre_1_1MouseState.html#Ogre_1_1MouseStateo6">00192</a> <span class="keywordtype">long</span> Buttons; |
---|
194 | 00193 |
---|
195 | <a name="l00195"></a><a class="code" href="structOgre_1_1MouseState.html#Ogre_1_1MouseStatea0">00195</a> <span class="keyword">inline</span> <span class="keywordtype">long</span> isButtonDown( <a class="code" href="namespaceOgre.html#a466">uchar</a> button )<span class="keyword"> const</span> |
---|
196 | 00196 <span class="keyword"> </span>{ |
---|
197 | 00197 <span class="keywordflow">return</span> Buttons & ( 1 << button ); |
---|
198 | 00198 } |
---|
199 | 00199 }; |
---|
200 | 00200 |
---|
201 | <a name="l00212"></a><a class="code" href="classOgre_1_1InputReader.html">00212</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> InputReader |
---|
202 | 00213 { |
---|
203 | 00214 <span class="keyword">public</span>: |
---|
204 | 00215 InputReader(); |
---|
205 | 00216 <span class="keyword">virtual</span> ~InputReader(); |
---|
206 | 00217 |
---|
207 | 00224 <span class="keywordtype">void</span> useBufferedInput(<a class="code" href="classOgre_1_1EventQueue.html">EventQueue</a>* pEventQueue, <span class="keywordtype">bool</span> keys = <span class="keyword">true</span>, <span class="keywordtype">bool</span> mouse = <span class="keyword">true</span>) ; |
---|
208 | 00225 |
---|
209 | 00226 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setBufferedInput(<span class="keywordtype">bool</span> keys, <span class="keywordtype">bool</span> mouse) ; |
---|
210 | 00227 |
---|
211 | 00228 |
---|
212 | 00241 <span class="keyword">virtual</span> <span class="keywordtype">void</span> initialise( |
---|
213 | 00242 <a class="code" href="classOgre_1_1RenderWindow.html">RenderWindow</a>* pWindow, |
---|
214 | 00243 <span class="keywordtype">bool</span> useKeyboard = <span class="keyword">true</span>, |
---|
215 | 00244 <span class="keywordtype">bool</span> useMouse = <span class="keyword">true</span>, |
---|
216 | 00245 <span class="keywordtype">bool</span> useGameController = <span class="keyword">false</span> ) = 0; |
---|
217 | 00246 |
---|
218 | 00256 <span class="keyword">virtual</span> <span class="keywordtype">void</span> capture() = 0; |
---|
219 | 00257 |
---|
220 | 00262 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isKeyDown( <a class="code" href="namespaceOgre.html#a662">KeyCode</a> kc ) <span class="keyword">const</span>; |
---|
221 | 00263 |
---|
222 | <a name="l00266"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8a16">00266</a> <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseRelativeX()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getMouseRelX(); } |
---|
223 | 00267 |
---|
224 | <a name="l00270"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8a17">00270</a> <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseRelativeY()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getMouseRelY(); } |
---|
225 | 00271 |
---|
226 | <a name="l00274"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8a18">00274</a> <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseRelativeZ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getMouseRelZ(); } |
---|
227 | 00275 |
---|
228 | 00278 <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseRelX() <span class="keyword">const</span> = 0; |
---|
229 | 00279 |
---|
230 | 00282 <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseRelY() <span class="keyword">const</span> = 0; |
---|
231 | 00283 |
---|
232 | 00286 <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseRelZ() <span class="keyword">const</span> = 0; |
---|
233 | 00287 |
---|
234 | 00289 <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseAbsX() <span class="keyword">const</span> = 0; |
---|
235 | 00291 <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseAbsY() <span class="keyword">const</span> = 0; |
---|
236 | 00293 <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseAbsZ() <span class="keyword">const</span> = 0; |
---|
237 | 00294 |
---|
238 | 00296 <span class="keyword">virtual</span> <span class="keywordtype">void</span> getMouseState( MouseState& state ) <span class="keyword">const</span> = 0; |
---|
239 | 00297 |
---|
240 | 00299 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getMouseButton( <a class="code" href="namespaceOgre.html#a466">uchar</a> button ) <span class="keyword">const</span> = 0; |
---|
241 | 00300 |
---|
242 | 00303 <span class="keywordtype">void</span> addCursorMoveListener( <a class="code" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a>* c ); |
---|
243 | 00304 |
---|
244 | 00307 <span class="keywordtype">void</span> removeCursorMoveListener( <a class="code" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a>* c ); |
---|
245 | 00308 <span class="keyword">static</span> <span class="keywordtype">char</span> getKeyChar(<span class="keywordtype">int</span> keyCode, <span class="keywordtype">long</span> modifiers = 0); |
---|
246 | 00309 |
---|
247 | <a name="l00313"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8a21">00313</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setMouseScale( <a class="code" href="namespaceOgre.html#a465">Real</a> scale ) { mMouseScale = scale; } |
---|
248 | 00314 |
---|
249 | <a name="l00317"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8a22">00317</a> <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a465">Real</a> getMouseScale( <span class="keywordtype">void</span> )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMouseScale; } |
---|
250 | 00318 |
---|
251 | 00319 |
---|
252 | 00320 |
---|
253 | 00321 <span class="keyword">protected</span>: |
---|
254 | 00322 |
---|
255 | <a name="l00325"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8p0">00325</a> <span class="keywordtype">long</span> mModifiers; |
---|
256 | 00326 |
---|
257 | <a name="l00328"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8p1">00328</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mMouseScale; |
---|
258 | 00329 |
---|
259 | <a name="l00336"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8p2">00336</a> <a class="code" href="classOgre_1_1Cursor.html">Cursor</a>* mCursor; |
---|
260 | 00337 |
---|
261 | <a name="l00339"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8p3">00339</a> <a class="code" href="classOgre_1_1EventQueue.html">EventQueue</a>* mEventQueue; |
---|
262 | 00340 |
---|
263 | <a name="l00344"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8p5">00344</a> <span class="keywordtype">bool</span> mUseBufferedKeys, mUseBufferedMouse; |
---|
264 | 00345 |
---|
265 | <a name="l00347"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8p6">00347</a> MouseState mMouseState; |
---|
266 | 00348 |
---|
267 | <a name="l00350"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8x0">00350</a> <span class="keyword">typedef</span> std::set<KeyCode> <a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8x0">BufferedKeysDownSet</a>; |
---|
268 | <a name="l00351"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8p7">00351</a> <a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8x0">BufferedKeysDownSet</a> mBufferedKeysDown; |
---|
269 | 00352 |
---|
270 | 00354 <span class="keywordtype">void</span> mouseMoved(); |
---|
271 | 00355 |
---|
272 | 00358 <span class="keywordtype">void</span> createMouseEvent(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> button); |
---|
273 | 00359 |
---|
274 | 00361 <span class="keywordtype">void</span> triggerMouseButton(<span class="keywordtype">int</span> nMouseCode, <span class="keywordtype">bool</span> mousePressed); |
---|
275 | 00362 |
---|
276 | 00363 <span class="keywordtype">void</span> createKeyEvent(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> key); |
---|
277 | 00364 <span class="keywordtype">void</span> keyChanged(<span class="keywordtype">int</span> key, <span class="keywordtype">bool</span> down); |
---|
278 | 00365 |
---|
279 | 00367 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isKeyDownImmediate( KeyCode kc ) <span class="keyword">const</span> = 0; |
---|
280 | 00368 }; |
---|
281 | 00369 |
---|
282 | 00370 |
---|
283 | <a name="l00378"></a><a class="code" href="namespaceOgre.html#a191">00378</a> <span class="keyword">typedef</span> void (*<a class="code" href="namespaceOgre.html#a191">DLL_CREATEINPUTREADER</a>)(InputReader** ppReader); |
---|
284 | 00379 |
---|
285 | 00380 } |
---|
286 | 00381 |
---|
287 | 00382 <span class="preprocessor">#endif</span> |
---|
288 | </pre></div><hr> |
---|
289 | <p> |
---|
290 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
291 | <!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/> |
---|
292 | This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/> |
---|
293 | <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
---|
294 | <Work rdf:about=""> |
---|
295 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
296 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
297 | </Work> |
---|
298 | <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> --> |
---|
299 | |
---|
300 | Last modified Sun Mar 12 14:37:43 2006 |
---|
301 | </p> |
---|
302 | </body> |
---|
303 | </html> |
---|