source: OGRE/trunk/ogrenew/Docs/api/html/OgreInput_8h-source.html @ 692

Revision 692, 31.3 KB checked in by mattausch, 18 years ago (diff)

adding ogre 1.2 and dependencies

Line 
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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;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>
1100002 <span class="comment">-----------------------------------------------------------------------------</span>
1200003 <span class="comment">This source file is part of OGRE</span>
1300004 <span class="comment">    (Object-oriented Graphics Rendering Engine)</span>
1400005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span>
1500006 <span class="comment"></span>
1600007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span>
1700008 <span class="comment">Also see acknowledgements in Readme.html</span>
1800009 <span class="comment"></span>
1900010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span>
2000011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span>
2100012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span>
2200013 <span class="comment">version.</span>
2300014 <span class="comment"></span>
2400015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span>
2500016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
2600017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span>
2700018 <span class="comment"></span>
2800019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span>
2900020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span>
3000021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span>
3100022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span>
3200023 <span class="comment">-----------------------------------------------------------------------------</span>
3300024 <span class="comment">*/</span>
3400025 <span class="preprocessor">#ifndef __Input_H__</span>
3500026 <span class="preprocessor"></span><span class="preprocessor">#define __Input_H__</span>
3600027 <span class="preprocessor"></span>
3700028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span>
3800029
3900030 <span class="keyword">namespace </span>Ogre {
4000031
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>
4200035     {
4300036         <a class="code" href="namespaceOgre.html#a662a192">KC_ESCAPE</a>          =0x01,
4400037         <a class="code" href="namespaceOgre.html#a662a193">KC_1</a>               =0x02,
4500038         <a class="code" href="namespaceOgre.html#a662a194">KC_2</a>               =0x03,
4600039         <a class="code" href="namespaceOgre.html#a662a195">KC_3</a>               =0x04,
4700040         <a class="code" href="namespaceOgre.html#a662a196">KC_4</a>               =0x05,
4800041         <a class="code" href="namespaceOgre.html#a662a197">KC_5</a>               =0x06,
4900042         <a class="code" href="namespaceOgre.html#a662a198">KC_6</a>               =0x07,
5000043         <a class="code" href="namespaceOgre.html#a662a199">KC_7</a>               =0x08,
5100044         <a class="code" href="namespaceOgre.html#a662a200">KC_8</a>               =0x09,
5200045         <a class="code" href="namespaceOgre.html#a662a201">KC_9</a>               =0x0A,
5300046         <a class="code" href="namespaceOgre.html#a662a202">KC_0</a>               =0x0B,
5400047         <a class="code" href="namespaceOgre.html#a662a203">KC_MINUS</a>           =0x0C,    <span class="comment">/* - on main keyboard */</span>
5500048         <a class="code" href="namespaceOgre.html#a662a204">KC_EQUALS</a>          =0x0D,
5600049         <a class="code" href="namespaceOgre.html#a662a205">KC_BACK</a>            =0x0E,    <span class="comment">/* backspace */</span>
5700050         <a class="code" href="namespaceOgre.html#a662a206">KC_TAB</a>             =0x0F,
5800051         <a class="code" href="namespaceOgre.html#a662a207">KC_Q</a>               =0x10,
5900052         <a class="code" href="namespaceOgre.html#a662a208">KC_W</a>               =0x11,
6000053         <a class="code" href="namespaceOgre.html#a662a209">KC_E</a>               =0x12,
6100054         <a class="code" href="namespaceOgre.html#a662a210">KC_R</a>               =0x13,
6200055         <a class="code" href="namespaceOgre.html#a662a211">KC_T</a>               =0x14,
6300056         <a class="code" href="namespaceOgre.html#a662a212">KC_Y</a>               =0x15,
6400057         <a class="code" href="namespaceOgre.html#a662a213">KC_U</a>               =0x16,
6500058         <a class="code" href="namespaceOgre.html#a662a214">KC_I</a>               =0x17,
6600059         <a class="code" href="namespaceOgre.html#a662a215">KC_O</a>               =0x18,
6700060         <a class="code" href="namespaceOgre.html#a662a216">KC_P</a>               =0x19,
6800061         <a class="code" href="namespaceOgre.html#a662a217">KC_LBRACKET</a>        =0x1A,
6900062         <a class="code" href="namespaceOgre.html#a662a218">KC_RBRACKET</a>        =0x1B,
7000063         <a class="code" href="namespaceOgre.html#a662a219">KC_RETURN</a>          =0x1C,    <span class="comment">/* Enter on main keyboard */</span>
7100064         <a class="code" href="namespaceOgre.html#a662a220">KC_LCONTROL</a>        =0x1D,
7200065         <a class="code" href="namespaceOgre.html#a662a221">KC_A</a>               =0x1E,
7300066         <a class="code" href="namespaceOgre.html#a662a222">KC_S</a>               =0x1F,
7400067         <a class="code" href="namespaceOgre.html#a662a223">KC_D</a>               =0x20,
7500068         <a class="code" href="namespaceOgre.html#a662a224">KC_F</a>               =0x21,
7600069         <a class="code" href="namespaceOgre.html#a662a225">KC_G</a>               =0x22,
7700070         <a class="code" href="namespaceOgre.html#a662a226">KC_H</a>               =0x23,
7800071         <a class="code" href="namespaceOgre.html#a662a227">KC_J</a>               =0x24,
7900072         <a class="code" href="namespaceOgre.html#a662a228">KC_K</a>               =0x25,
8000073         <a class="code" href="namespaceOgre.html#a662a229">KC_L</a>               =0x26,
8100074         <a class="code" href="namespaceOgre.html#a662a230">KC_SEMICOLON</a>       =0x27,
8200075         <a class="code" href="namespaceOgre.html#a662a231">KC_APOSTROPHE</a>      =0x28,
8300076         <a class="code" href="namespaceOgre.html#a662a232">KC_GRAVE</a>           =0x29,    <span class="comment">/* accent grave */</span>
8400077         <a class="code" href="namespaceOgre.html#a662a233">KC_LSHIFT</a>          =0x2A,
8500078         <a class="code" href="namespaceOgre.html#a662a234">KC_BACKSLASH</a>       =0x2B,
8600079         <a class="code" href="namespaceOgre.html#a662a235">KC_Z</a>               =0x2C,
8700080         <a class="code" href="namespaceOgre.html#a662a236">KC_X</a>               =0x2D,
8800081         <a class="code" href="namespaceOgre.html#a662a237">KC_C</a>               =0x2E,
8900082         <a class="code" href="namespaceOgre.html#a662a238">KC_V</a>               =0x2F,
9000083         <a class="code" href="namespaceOgre.html#a662a239">KC_B</a>               =0x30,
9100084         <a class="code" href="namespaceOgre.html#a662a240">KC_N</a>               =0x31,
9200085         <a class="code" href="namespaceOgre.html#a662a241">KC_M</a>               =0x32,
9300086         <a class="code" href="namespaceOgre.html#a662a242">KC_COMMA</a>           =0x33,
9400087         <a class="code" href="namespaceOgre.html#a662a243">KC_PERIOD</a>          =0x34,    <span class="comment">/* . on main keyboard */</span>
9500088         <a class="code" href="namespaceOgre.html#a662a244">KC_SLASH</a>           =0x35,    <span class="comment">/* '/' on main keyboard */</span>
9600089         <a class="code" href="namespaceOgre.html#a662a245">KC_RSHIFT</a>          =0x36,
9700090         <a class="code" href="namespaceOgre.html#a662a246">KC_MULTIPLY</a>        =0x37,    <span class="comment">/* * on numeric keypad */</span>
9800091         <a class="code" href="namespaceOgre.html#a662a247">KC_LMENU</a>           =0x38,    <span class="comment">/* left Alt */</span>
9900092         <a class="code" href="namespaceOgre.html#a662a248">KC_SPACE</a>           =0x39,
10000093         <a class="code" href="namespaceOgre.html#a662a249">KC_CAPITAL</a>         =0x3A,
10100094         <a class="code" href="namespaceOgre.html#a662a250">KC_F1</a>              =0x3B,
10200095         <a class="code" href="namespaceOgre.html#a662a251">KC_F2</a>              =0x3C,
10300096         <a class="code" href="namespaceOgre.html#a662a252">KC_F3</a>              =0x3D,
10400097         <a class="code" href="namespaceOgre.html#a662a253">KC_F4</a>              =0x3E,
10500098         <a class="code" href="namespaceOgre.html#a662a254">KC_F5</a>              =0x3F,
10600099         <a class="code" href="namespaceOgre.html#a662a255">KC_F6</a>              =0x40,
10700100         <a class="code" href="namespaceOgre.html#a662a256">KC_F7</a>              =0x41,
10800101         <a class="code" href="namespaceOgre.html#a662a257">KC_F8</a>              =0x42,
10900102         <a class="code" href="namespaceOgre.html#a662a258">KC_F9</a>              =0x43,
11000103         <a class="code" href="namespaceOgre.html#a662a259">KC_F10</a>             =0x44,
11100104         <a class="code" href="namespaceOgre.html#a662a260">KC_NUMLOCK</a>         =0x45,
11200105         <a class="code" href="namespaceOgre.html#a662a261">KC_SCROLL</a>          =0x46,    <span class="comment">/* Scroll Lock */</span>
11300106         <a class="code" href="namespaceOgre.html#a662a262">KC_NUMPAD7</a>         =0x47,
11400107         <a class="code" href="namespaceOgre.html#a662a263">KC_NUMPAD8</a>         =0x48,
11500108         <a class="code" href="namespaceOgre.html#a662a264">KC_NUMPAD9</a>         =0x49,
11600109         <a class="code" href="namespaceOgre.html#a662a265">KC_SUBTRACT</a>        =0x4A,    <span class="comment">/* - on numeric keypad */</span>
11700110         <a class="code" href="namespaceOgre.html#a662a266">KC_NUMPAD4</a>         =0x4B,
11800111         <a class="code" href="namespaceOgre.html#a662a267">KC_NUMPAD5</a>         =0x4C,
11900112         <a class="code" href="namespaceOgre.html#a662a268">KC_NUMPAD6</a>         =0x4D,
12000113         <a class="code" href="namespaceOgre.html#a662a269">KC_ADD</a>             =0x4E,    <span class="comment">/* + on numeric keypad */</span>
12100114         <a class="code" href="namespaceOgre.html#a662a270">KC_NUMPAD1</a>         =0x4F,
12200115         <a class="code" href="namespaceOgre.html#a662a271">KC_NUMPAD2</a>         =0x50,
12300116         <a class="code" href="namespaceOgre.html#a662a272">KC_NUMPAD3</a>         =0x51,
12400117         <a class="code" href="namespaceOgre.html#a662a273">KC_NUMPAD0</a>         =0x52,
12500118         <a class="code" href="namespaceOgre.html#a662a274">KC_DECIMAL</a>         =0x53,    <span class="comment">/* . on numeric keypad */</span>
12600119         <a class="code" href="namespaceOgre.html#a662a275">KC_OEM_102</a>         =0x56,    <span class="comment">/* &lt; &gt; | on UK/Germany keyboards */</span>
12700120         <a class="code" href="namespaceOgre.html#a662a276">KC_F11</a>             =0x57,
12800121         <a class="code" href="namespaceOgre.html#a662a277">KC_F12</a>             =0x58,
12900122         <a class="code" href="namespaceOgre.html#a662a278">KC_F13</a>             =0x64,    <span class="comment">/*                     (NEC PC98) */</span>
13000123         <a class="code" href="namespaceOgre.html#a662a279">KC_F14</a>             =0x65,    <span class="comment">/*                     (NEC PC98) */</span>
13100124         <a class="code" href="namespaceOgre.html#a662a280">KC_F15</a>             =0x66,    <span class="comment">/*                     (NEC PC98) */</span>
13200125         <a class="code" href="namespaceOgre.html#a662a281">KC_KANA</a>            =0x70,    <span class="comment">/* (Japanese keyboard)            */</span>
13300126         <a class="code" href="namespaceOgre.html#a662a282">KC_ABNT_C1</a>         =0x73,    <span class="comment">/* / ? on Portugese (Brazilian) keyboards */</span>
13400127         <a class="code" href="namespaceOgre.html#a662a283">KC_CONVERT</a>         =0x79,    <span class="comment">/* (Japanese keyboard)            */</span>
13500128         <a class="code" href="namespaceOgre.html#a662a284">KC_NOCONVERT</a>       =0x7B,    <span class="comment">/* (Japanese keyboard)            */</span>
13600129         <a class="code" href="namespaceOgre.html#a662a285">KC_YEN</a>             =0x7D,    <span class="comment">/* (Japanese keyboard)            */</span>
13700130         <a class="code" href="namespaceOgre.html#a662a286">KC_ABNT_C2</a>         =0x7E,    <span class="comment">/* Numpad . on Portugese (Brazilian) keyboards */</span>
13800131         <a class="code" href="namespaceOgre.html#a662a287">KC_NUMPADEQUALS</a>    =0x8D,    <span class="comment">/* = on numeric keypad (NEC PC98) */</span>
13900132         <a class="code" href="namespaceOgre.html#a662a288">KC_PREVTRACK</a>       =0x90,    <span class="comment">/* Previous Track (KC_CIRCUMFLEX on Japanese keyboard) */</span>
14000133         <a class="code" href="namespaceOgre.html#a662a289">KC_AT</a>              =0x91,    <span class="comment">/*                     (NEC PC98) */</span>
14100134         <a class="code" href="namespaceOgre.html#a662a290">KC_COLON</a>           =0x92,    <span class="comment">/*                     (NEC PC98) */</span>
14200135         <a class="code" href="namespaceOgre.html#a662a291">KC_UNDERLINE</a>       =0x93,    <span class="comment">/*                     (NEC PC98) */</span>
14300136         <a class="code" href="namespaceOgre.html#a662a292">KC_KANJI</a>           =0x94,    <span class="comment">/* (Japanese keyboard)            */</span>
14400137         <a class="code" href="namespaceOgre.html#a662a293">KC_STOP</a>            =0x95,    <span class="comment">/*                     (NEC PC98) */</span>
14500138         <a class="code" href="namespaceOgre.html#a662a294">KC_AX</a>              =0x96,    <span class="comment">/*                     (Japan AX) */</span>
14600139         <a class="code" href="namespaceOgre.html#a662a295">KC_UNLABELED</a>       =0x97,    <span class="comment">/*                        (J3100) */</span>
14700140         <a class="code" href="namespaceOgre.html#a662a296">KC_NEXTTRACK</a>       =0x99,    <span class="comment">/* Next Track */</span>
14800141         <a class="code" href="namespaceOgre.html#a662a297">KC_NUMPADENTER</a>     =0x9C,    <span class="comment">/* Enter on numeric keypad */</span>
14900142         <a class="code" href="namespaceOgre.html#a662a298">KC_RCONTROL</a>        =0x9D,
15000143         <a class="code" href="namespaceOgre.html#a662a299">KC_MUTE</a>            =0xA0,    <span class="comment">/* Mute */</span>
15100144         <a class="code" href="namespaceOgre.html#a662a300">KC_CALCULATOR</a>      =0xA1,    <span class="comment">/* Calculator */</span>
15200145         <a class="code" href="namespaceOgre.html#a662a301">KC_PLAYPAUSE</a>       =0xA2,    <span class="comment">/* Play / Pause */</span>
15300146         <a class="code" href="namespaceOgre.html#a662a302">KC_MEDIASTOP</a>       =0xA4,    <span class="comment">/* Media Stop */</span>
15400147         <a class="code" href="namespaceOgre.html#a662a303">KC_VOLUMEDOWN</a>      =0xAE,    <span class="comment">/* Volume - */</span>
15500148         <a class="code" href="namespaceOgre.html#a662a304">KC_VOLUMEUP</a>        =0xB0,    <span class="comment">/* Volume + */</span>
15600149         <a class="code" href="namespaceOgre.html#a662a305">KC_WEBHOME</a>         =0xB2,    <span class="comment">/* Web home */</span>
15700150         <a class="code" href="namespaceOgre.html#a662a306">KC_NUMPADCOMMA</a>     =0xB3,    <span class="comment">/* , on numeric keypad (NEC PC98) */</span>
15800151         <a class="code" href="namespaceOgre.html#a662a307">KC_DIVIDE</a>          =0xB5,    <span class="comment">/* / on numeric keypad */</span>
15900152         <a class="code" href="namespaceOgre.html#a662a308">KC_SYSRQ</a>           =0xB7,
16000153         <a class="code" href="namespaceOgre.html#a662a309">KC_RMENU</a>           =0xB8,    <span class="comment">/* right Alt */</span>
16100154         <a class="code" href="namespaceOgre.html#a662a310">KC_PAUSE</a>           =0xC5,    <span class="comment">/* Pause */</span>
16200155         <a class="code" href="namespaceOgre.html#a662a311">KC_HOME</a>            =0xC7,    <span class="comment">/* Home on arrow keypad */</span>
16300156         <a class="code" href="namespaceOgre.html#a662a312">KC_UP</a>              =0xC8,    <span class="comment">/* UpArrow on arrow keypad */</span>
16400157         <a class="code" href="namespaceOgre.html#a662a313">KC_PGUP</a>            =0xC9,    <span class="comment">/* PgUp on arrow keypad */</span>
16500158         <a class="code" href="namespaceOgre.html#a662a314">KC_LEFT</a>            =0xCB,    <span class="comment">/* LeftArrow on arrow keypad */</span>
16600159         <a class="code" href="namespaceOgre.html#a662a315">KC_RIGHT</a>           =0xCD,    <span class="comment">/* RightArrow on arrow keypad */</span>
16700160         <a class="code" href="namespaceOgre.html#a662a316">KC_END</a>             =0xCF,    <span class="comment">/* End on arrow keypad */</span>
16800161         <a class="code" href="namespaceOgre.html#a662a317">KC_DOWN</a>            =0xD0,    <span class="comment">/* DownArrow on arrow keypad */</span>
16900162         <a class="code" href="namespaceOgre.html#a662a318">KC_PGDOWN</a>          =0xD1,    <span class="comment">/* PgDn on arrow keypad */</span>
17000163         <a class="code" href="namespaceOgre.html#a662a319">KC_INSERT</a>          =0xD2,    <span class="comment">/* Insert on arrow keypad */</span>
17100164         <a class="code" href="namespaceOgre.html#a662a320">KC_DELETE</a>          =0xD3,    <span class="comment">/* Delete on arrow keypad */</span>
17200165         <a class="code" href="namespaceOgre.html#a662a321">KC_LWIN</a>            =0xDB,    <span class="comment">/* Left Windows key */</span>
17300166         <a class="code" href="namespaceOgre.html#a662a322">KC_RWIN</a>            =0xDC,    <span class="comment">/* Right Windows key */</span>
17400167         <a class="code" href="namespaceOgre.html#a662a323">KC_APPS</a>            =0xDD,    <span class="comment">/* AppMenu key */</span>
17500168         <a class="code" href="namespaceOgre.html#a662a324">KC_POWER</a>           =0xDE,    <span class="comment">/* System Power */</span>
17600169         <a class="code" href="namespaceOgre.html#a662a325">KC_SLEEP</a>           =0xDF,    <span class="comment">/* System Sleep */</span>
17700170         <a class="code" href="namespaceOgre.html#a662a326">KC_WAKE</a>            =0xE3,    <span class="comment">/* System Wake */</span>
17800171         <a class="code" href="namespaceOgre.html#a662a327">KC_WEBSEARCH</a>       =0xE5,    <span class="comment">/* Web Search */</span>
17900172         <a class="code" href="namespaceOgre.html#a662a328">KC_WEBFAVORITES</a>    =0xE6,    <span class="comment">/* Web Favorites */</span>
18000173         <a class="code" href="namespaceOgre.html#a662a329">KC_WEBREFRESH</a>      =0xE7,    <span class="comment">/* Web Refresh */</span>
18100174         <a class="code" href="namespaceOgre.html#a662a330">KC_WEBSTOP</a>         =0xE8,    <span class="comment">/* Web Stop */</span>
18200175         <a class="code" href="namespaceOgre.html#a662a331">KC_WEBFORWARD</a>      =0xE9,    <span class="comment">/* Web Forward */</span>
18300176         <a class="code" href="namespaceOgre.html#a662a332">KC_WEBBACK</a>         =0xEA,    <span class="comment">/* Web Back */</span>
18400177         <a class="code" href="namespaceOgre.html#a662a333">KC_MYCOMPUTER</a>      =0xEB,    <span class="comment">/* My Computer */</span>
18500178         <a class="code" href="namespaceOgre.html#a662a334">KC_MAIL</a>            =0xEC,    <span class="comment">/* Mail */</span>
18600179         <a class="code" href="namespaceOgre.html#a662a335">KC_MEDIASELECT</a>     =0xED     <span class="comment">/* Media Select */</span>
18700180     };
18800181
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
19000185     {
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;
19400193
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>
19600196 <span class="keyword">        </span>{
19700197             <span class="keywordflow">return</span> Buttons &amp; ( 1 &lt;&lt; button );
19800198         }
19900199     };
20000200
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
20200213     {
20300214     <span class="keyword">public</span>:
20400215         InputReader();
20500216         <span class="keyword">virtual</span> ~InputReader();
20600217
20700224         <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>) ;
20800225
20900226         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setBufferedInput(<span class="keywordtype">bool</span> keys, <span class="keywordtype">bool</span> mouse) ;
21000227             
21100228
21200241         <span class="keyword">virtual</span> <span class="keywordtype">void</span> initialise(
21300242             <a class="code" href="classOgre_1_1RenderWindow.html">RenderWindow</a>* pWindow,
21400243             <span class="keywordtype">bool</span> useKeyboard = <span class="keyword">true</span>,
21500244             <span class="keywordtype">bool</span> useMouse = <span class="keyword">true</span>,
21600245             <span class="keywordtype">bool</span> useGameController = <span class="keyword">false</span> ) = 0;
21700246
21800256         <span class="keyword">virtual</span> <span class="keywordtype">void</span> capture() = 0;
21900257
22000262         <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>;
22100263
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(); }
22300267
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(); }
22500271
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(); }
22700275
22800278         <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseRelX() <span class="keyword">const</span> = 0;
22900279
23000282         <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseRelY() <span class="keyword">const</span> = 0;
23100283
23200286         <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseRelZ() <span class="keyword">const</span> = 0;
23300287
23400289         <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseAbsX() <span class="keyword">const</span> = 0;
23500291         <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseAbsY() <span class="keyword">const</span> = 0;
23600293         <span class="keyword">virtual</span> <span class="keywordtype">long</span> getMouseAbsZ() <span class="keyword">const</span> = 0;
23700294
23800296         <span class="keyword">virtual</span> <span class="keywordtype">void</span> getMouseState( MouseState&amp; state ) <span class="keyword">const</span> = 0;
23900297
24000299         <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;
24100300
24200303         <span class="keywordtype">void</span> addCursorMoveListener( <a class="code" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a>* c );
24300304     
24400307         <span class="keywordtype">void</span> removeCursorMoveListener( <a class="code" href="classOgre_1_1MouseMotionListener.html">MouseMotionListener</a>* c );
24500308         <span class="keyword">static</span> <span class="keywordtype">char</span> getKeyChar(<span class="keywordtype">int</span> keyCode, <span class="keywordtype">long</span> modifiers = 0);
24600309
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; }
24800314         
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; }
25000318         
25100319
25200320
25300321     <span class="keyword">protected</span>:
25400322
255<a name="l00325"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8p0">00325</a>         <span class="keywordtype">long</span> mModifiers;
25600326
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;
25800329
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;
26000337
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;
26200340
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;
26400345
265<a name="l00347"></a><a class="code" href="classOgre_1_1InputReader.html#Ogre_1_1Win32Input8p6">00347</a>         MouseState mMouseState;
26600348
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&lt;KeyCode&gt; <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;
26900352
27000354         <span class="keywordtype">void</span> mouseMoved();
27100355
27200358         <span class="keywordtype">void</span> createMouseEvent(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> button);
27300359
27400361         <span class="keywordtype">void</span> triggerMouseButton(<span class="keywordtype">int</span> nMouseCode, <span class="keywordtype">bool</span> mousePressed);
27500362
27600363         <span class="keywordtype">void</span> createKeyEvent(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> key);
27700364         <span class="keywordtype">void</span> keyChanged(<span class="keywordtype">int</span> key, <span class="keywordtype">bool</span> down);
27800365         
27900367         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isKeyDownImmediate( KeyCode kc ) <span class="keyword">const</span> = 0;
28000368     };
28100369
28200370
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);
28400379
28500380 }
28600381
28700382 <span class="preprocessor">#endif</span>
288</pre></div><hr>
289<p>
290Copyright &copy; 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/>
292This 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
300Last modified Sun Mar 12 14:37:43 2006
301</p>
302</body>
303</html>
Note: See TracBrowser for help on using the repository browser.