diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-07-21 16:30:08 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-08-22 15:08:11 +0200 |
commit | 25188c448cef7c802b8e27e13d643a7c95aaa840 (patch) | |
tree | f4abf4bc767242a890f8025bd3e8917a07a92349 /vncviewer/Viewport.h | |
parent | 2f11bd9a6afe160886e42081c2542b8b5b7caefc (diff) | |
download | tigervnc-25188c448cef7c802b8e27e13d643a7c95aaa840.tar.gz tigervnc-25188c448cef7c802b8e27e13d643a7c95aaa840.zip |
Remove simple keyboard model
Remove the FLTK simple keyboard system and reorganise things in
preparation for a more direct approach.
Diffstat (limited to 'vncviewer/Viewport.h')
-rw-r--r-- | vncviewer/Viewport.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vncviewer/Viewport.h b/vncviewer/Viewport.h index 0523cd14..d9eea353 100644 --- a/vncviewer/Viewport.h +++ b/vncviewer/Viewport.h @@ -70,8 +70,11 @@ private: void handlePointerEvent(const rfb::Point& pos, int buttonMask); static void handlePointerTimeout(void *data); - rdr::U32 translateKeyEvent(int keyCode, int origKeyCode, const char *keyText); - void handleKeyEvent(int keyCode, int origKeyCode, const char *keyText, bool down); + void handleKeyPress(int keyCode, rdr::U32 keySym); + void handleKeyRelease(int keyCode); + + rdr::U32 translateKeyEvent(void); + void handleFLTKKeyPress(void); void initContextMenu(); void popupContextMenu(); @@ -91,6 +94,7 @@ private: typedef std::map<int, rdr::U32> DownMap; DownMap downKeySym; + rdr::U32 menuKeySym; int menuKeyCode; Fl_Menu_Button *contextMenu; |