diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-04-14 14:05:13 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-04-14 14:05:13 +0000 |
commit | d7c5b048cd82f899e276ef1428362ae868a18f5b (patch) | |
tree | 8722996048105a3f3287519553a36e1dc01ffe7d /vncviewer/DesktopWindow.h | |
parent | 2be3d8a1615ab9e139a61969137fbe67a64550a3 (diff) | |
download | tigervnc-d7c5b048cd82f899e276ef1428362ae868a18f5b.tar.gz tigervnc-d7c5b048cd82f899e276ef1428362ae868a18f5b.zip |
Use a STL map to track keys so we don't have to care what range FLTK key codes
can have.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4368 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/DesktopWindow.h')
-rw-r--r-- | vncviewer/DesktopWindow.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vncviewer/DesktopWindow.h b/vncviewer/DesktopWindow.h index a3178fb9..bf54c211 100644 --- a/vncviewer/DesktopWindow.h +++ b/vncviewer/DesktopWindow.h @@ -20,6 +20,8 @@ #ifndef __DESKTOPWINDOW_H__ #define __DESKTOPWINDOW_H__ +#include <map> + #include <FL/Fl.H> #include <FL/Fl_Window.H> @@ -116,7 +118,8 @@ private: rfb::Point lastPointerPos; int lastButtonMask; - rdr::U32 downKeySym[65536]; + typedef std::map<int, rdr::U32> DownMap; + DownMap downKeySym; }; #endif |