core/vgui/vgui_key.h

Go to the documentation of this file.
00001 // This is core/vgui/vgui_key.h
00002 #ifndef vgui_key_h_
00003 #define vgui_key_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \brief Enumeration of possible key strokes.
00010 
00011 #include <vcl_iosfwd.h>
00012 
00013 //: Enumeration of possible key strokes.
00014 enum vgui_key {
00015   vgui_KEY_NULL = 0,
00016   vgui_ESC=27, /* */ vgui_ESCAPE=27,
00017   vgui_TAB='\t',
00018   vgui_RETURN='\r',
00019   vgui_NEWLINE='\n',
00020   vgui_KEY_XXX=0x100, // non-ascii encoded keys below :
00021   vgui_F1, vgui_F2 , vgui_F3 , vgui_F4 , // function keys
00022   vgui_F5, vgui_F6 , vgui_F7 , vgui_F8 ,
00023   vgui_F9, vgui_F10, vgui_F11, vgui_F12,
00024   vgui_CURSOR_LEFT, vgui_CURSOR_UP, vgui_CURSOR_RIGHT, vgui_CURSOR_DOWN,  // cursor movement
00025   vgui_PAGE_UP, /* */ vgui_PGUP=vgui_PAGE_UP,
00026   vgui_PAGE_DOWN, /* */ vgui_PGDN = vgui_PAGE_DOWN,
00027   vgui_HOME, vgui_END,
00028   vgui_DELETE, vgui_INSERT  // other things
00029 };
00030 
00031 //: Given a letter character, this function returns the control character.
00032 //
00033 //  Use vgui_key_CTRL('a') or vgui_key_CTRL('A') to signify control+A.
00034 //  Note, the vgui_key in a vgui_event is always a lower case letter (see
00035 //  vgui_event.h), so don't compare event.key to a vgui_key_CTRL'ed letter.
00036 //  You may compare a vgui_key_CTRL'ed to an event.ascii_key.
00037 vgui_key vgui_key_CTRL(int character);
00038 
00039 vcl_ostream& operator<<(vcl_ostream& s, vgui_key k);
00040 
00041 #endif // vgui_key_h_

Generated on Mon Mar 8 05:12:27 2010 for core/vgui by  doxygen 1.5.1