SFML logo
  • Main Page
  • Modules
  • Classes
  • Files
  • File List

Keyboard.hpp

00001 
00002 //
00003 // SFML - Simple and Fast Multimedia Library
00004 // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
00005 //
00006 // This software is provided 'as-is', without any express or implied warranty.
00007 // In no event will the authors be held liable for any damages arising from the use of this software.
00008 //
00009 // Permission is granted to anyone to use this software for any purpose,
00010 // including commercial applications, and to alter it and redistribute it freely,
00011 // subject to the following restrictions:
00012 //
00013 // 1. The origin of this software must not be misrepresented;
00014 //    you must not claim that you wrote the original software.
00015 //    If you use this software in a product, an acknowledgment
00016 //    in the product documentation would be appreciated but is not required.
00017 //
00018 // 2. Altered source versions must be plainly marked as such,
00019 //    and must not be misrepresented as being the original software.
00020 //
00021 // 3. This notice may not be removed or altered from any source distribution.
00022 //
00024 
00025 #ifndef SFML_KEYBOARD_HPP
00026 #define SFML_KEYBOARD_HPP
00027 
00029 // Headers
00031 #include <SFML/Config.hpp>
00032 
00033 
00034 namespace sf
00035 {
00040 class SFML_API Keyboard
00041 {
00042 public :
00043 
00048     enum Key
00049     {
00050         A,            
00051         B,            
00052         C,            
00053         D,            
00054         E,            
00055         F,            
00056         G,            
00057         H,            
00058         I,            
00059         J,            
00060         K,            
00061         L,            
00062         M,            
00063         N,            
00064         O,            
00065         P,            
00066         Q,            
00067         R,            
00068         S,            
00069         T,            
00070         U,            
00071         V,            
00072         W,            
00073         X,            
00074         Y,            
00075         Z,            
00076         Num0,         
00077         Num1,         
00078         Num2,         
00079         Num3,         
00080         Num4,         
00081         Num5,         
00082         Num6,         
00083         Num7,         
00084         Num8,         
00085         Num9,         
00086         Escape,       
00087         LControl,     
00088         LShift,       
00089         LAlt,         
00090         LSystem,      
00091         RControl,     
00092         RShift,       
00093         RAlt,         
00094         RSystem,      
00095         Menu,         
00096         LBracket,     
00097         RBracket,     
00098         SemiColon,    
00099         Comma,        
00100         Period,       
00101         Quote,        
00102         Slash,        
00103         BackSlash,    
00104         Tilde,        
00105         Equal,        
00106         Dash,         
00107         Space,        
00108         Return,       
00109         Back,         
00110         Tab,          
00111         PageUp,       
00112         PageDown,     
00113         End,          
00114         Home,         
00115         Insert,       
00116         Delete,       
00117         Add,          
00118         Subtract,     
00119         Multiply,     
00120         Divide,       
00121         Left,         
00122         Right,        
00123         Up,           
00124         Down,         
00125         Numpad0,      
00126         Numpad1,      
00127         Numpad2,      
00128         Numpad3,      
00129         Numpad4,      
00130         Numpad5,      
00131         Numpad6,      
00132         Numpad7,      
00133         Numpad8,      
00134         Numpad9,      
00135         F1,           
00136         F2,           
00137         F3,           
00138         F4,           
00139         F5,           
00140         F6,           
00141         F7,           
00142         F8,           
00143         F9,           
00144         F10,          
00145         F11,          
00146         F12,          
00147         F13,          
00148         F14,          
00149         F15,          
00150         Pause,        
00151 
00152         KeyCount      
00153     };
00154 
00163     static bool IsKeyPressed(Key key);
00164 };
00165 
00166 } // namespace sf
00167 
00168 
00169 #endif // SFML_KEYBOARD_HPP
00170 
00171 

 ::  Copyright © 2007-2008 Laurent Gomila, all rights reserved  ::  Documentation generated by doxygen 1.5.2  ::