winkeys.h

Go to the documentation of this file.
00001 //& ****************************************************************************
00002 //&
00003 //& Copyright (C) 2004 HP-GCC Team
00004 //&
00005 //& ****************************************************************************
00006 //&
00007 //& This file is part of HP-GCC.
00008 //&
00009 //& HP-GCC is free software; you can redistribute it and/or modify
00010 //& it under the terms of the GNU General Public License as published by
00011 //& the Free Software Foundation; either version 2, or (at your option)
00012 //& any later version.
00013 //& 
00014 //& HP-GCC is distributed in the hope that it will be useful,
00015 //& but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 //& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 //& GNU General Public License for more details.
00018 //& 
00019 //& You should have received a copy of the GNU General Public License
00020 //& along with HP-GCC; see the file COPYING. 
00021 //& 
00022 //& As a special exception, you may use this file as part of a free software
00023 //& library without restriction.  Specifically, if other files instantiate
00024 //& templates or use macros or inline functions from this file, or you compile
00025 //& this file and link it with other files to produce an executable, this
00026 //& file does not by itself cause the resulting executable to be covered by
00027 //& the GNU General Public License.  This exception does not however
00028 //& invalidate any other reasons why the executable file might be covered by
00029 //& the GNU General Public License.
00030 //&
00031 //& ****************************************************************************
00032 
00033 /*
00034  * EVENT INFORMATION: This header defines system event numbers 1 through
00035  *                    6.  They are WIN_KEY_PRESSED, WIN_KEY_RELEASED,
00036  *                    WIN_KEY_TYPED, WIN_ALPHA_CHANGED, WIN_LSHIFT_CHANGED,
00037  *                    and WIN_RSHIFT_CHANGED.
00038  */
00039 
00040 #ifndef _WINKEYS_H_
00041 #define _WINKEYS_H_
00042 
00065 #define WIN_KEY_PRESSED     1
00066 
00080 #define WIN_KEY_RELEASED    2
00081 
00102 #define WIN_KEY_TYPED       3
00103 
00116 #define WIN_ALPHA_CHANGED   4
00117 
00130 #define WIN_LSHIFT_CHANGED  5
00131 
00144 #define WIN_RSHIFT_CHANGED  6
00145 
00149 #define WIN_KEYSTATE_OFF     0
00150 
00158 #define WIN_KEYSTATE_ON      1
00159 
00163 #define WIN_KEYSTATE_LOCK    2
00164 
00168 #define WIN_KEYSTATE_PRESSED 3
00169 
00175 typedef struct
00176 {
00183     unsigned keycode : 8;
00184 
00192     char ascii;
00193 
00201     unsigned lshift : 2;
00202 
00210     unsigned rshift : 2;
00211 
00219     unsigned alpha : 2;
00220 } win_keytyped_t;
00221 
00222 #endif /* _WINKEYS_H_ */

Generated on Fri Feb 16 16:43:17 2007 for HPGCCWindows by  doxygen 1.5.0