summaryrefslogtreecommitdiffstats
path: root/client/application.h
diff options
context:
space:
mode:
authorYaniv Kamay <ykamay@redhat.com>2009-11-22 18:54:24 +0200
committerYaniv Kamay <ykamay@redhat.com>2009-11-30 18:15:08 +0200
commit81241dd8251078fb049d35b7bc8a6c4dcfb6fa98 (patch)
tree2ea07bd3796550948dffd27ebcecfbeebe1a99e6 /client/application.h
parent4f2e36f08ab0d48eed0029d689461487b0013b7d (diff)
downloadspice-81241dd8251078fb049d35b7bc8a6c4dcfb6fa98.tar.gz
spice-81241dd8251078fb049d35b7bc8a6c4dcfb6fa98.tar.xz
spice-81241dd8251078fb049d35b7bc8a6c4dcfb6fa98.zip
client: move scan code translation to InputsChannel
Diffstat (limited to 'client/application.h')
-rw-r--r--client/application.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/client/application.h b/client/application.h
index fde4402f..ebce51a4 100644
--- a/client/application.h
+++ b/client/application.h
@@ -72,12 +72,6 @@ private:
std::vector<MonitorInfo> _monitors;
};
-struct KeyInfo {
- uint32_t _make;
- uint32_t _break;
- bool press;
-};
-
enum CanvasOption {
CANVAS_OPTION_INVALID,
CANVAS_OPTION_CAIRO,
@@ -175,14 +169,7 @@ private:
bool set_canvas_option(CmdLineParser& parser, char *val);
bool process_cmd_line(int argc, char** argv);
void abort();
- void init_scan_code(int index);
- void init_korean_scan_code(int index);
- void init_escape_scan_code(int index);
- void init_pause_scan_code();
- void init_key_table();
void init_menu();
- uint32_t get_make_scan_code(RedKey key);
- uint32_t get_break_scan_code(RedKey key);
void unpress_all();
bool release_capture();
bool do_connect();
@@ -235,7 +222,7 @@ private:
bool _changing_screens;
int _exit_code;
RedScreen* _active_screen;
- KeyInfo _key_table[REDKEY_NUM_KEYS];
+ bool _keyboard_state[REDKEY_NUM_KEYS];
int _num_keys_pressed;
HotKeys _hot_keys;
CommandsMap _commands_map;