removed tchar.h usage
[fegdk.git] / core / code / video / x11 / x11viewportdata.h
blobb624c0beb9967ac39ad4b6b7679b95c2c0636ae2
1 /*
2 fegdk: FE Game Development Kit
3 Copyright (C) 2001-2008 Alexey "waker" Yakovenko
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 Alexander Maltsev
20 keltar@users.sourceforge.net
23 #ifndef __F_X11VIEWPORTDATA_H
24 #define __F_X11VIEWPORTDATA_H
26 #include <X11/Xlib.h>
28 namespace fe
31 class x11ViewportData : public baseObject
33 private:
34 uint16 xkeyToUcs4 (XKeyEvent *xkey);
36 void onMouseMove (int x, int y);
38 void onMouseBtnDown (int x11_btn);
39 void onMouseBtnUp (int x11_btn);
41 void onKeyDown (int x11_key, int unicode);
42 void onKeyUp (int x11_key);
44 public:
46 x11ViewportData (void);
47 ~x11ViewportData (void);
49 void init (const char *appName);
51 void handleEvent (XEvent *event);
56 #endif // __F_X11VIEWPORTDATA_H