csutil/event.h
Go to the documentation of this file.00001 /* 00002 Event system related helpers 00003 Copyright (C) 2003 by Jorrit Tyberghein 00004 (C) 2003 by Frank Richter 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 #ifndef __CS_CSUTIL_EVENT_H__ 00022 #define __CS_CSUTIL_EVENT_H__ 00023 00024 #include "iutil/event.h" 00025 00038 class csKeyEventHelper 00039 { 00040 public: 00042 static utf32_char GetRawCode (const iEvent* event); 00044 static utf32_char GetCookedCode (const iEvent* event); 00046 static void GetModifiers (const iEvent* event, csKeyModifiers& modifiers); 00048 static csKeyEventType GetEventType (const iEvent* event); 00053 static bool GetAutoRepeat (const iEvent* event); 00055 static csKeyCharType GetCharacterType (const iEvent* event); 00057 static bool GetEventData (const iEvent* event, csKeyEventData& data); 00063 static uint32 GetModifiersBits (const csKeyModifiers& modifiers); 00068 static uint32 GetModifiersBits (const iEvent* event); 00069 }; 00074 #endif // __CS_CSUTIL_EVENT_H__
Generated for Crystal Space by doxygen 1.2.18