aboutsummaryrefslogtreecommitdiff
path: root/src/keymap.h
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-05 22:51:49 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-06 07:16:21 -0300
commitfdba1761f655ece7d6124570d20cc498c67f947e (patch)
tree5072c957bf606316bffe926793226b1bde22a66f /src/keymap.h
parent9c6811b23a90bb77a52ccd900bd0568a6475ad0b (diff)
downloadrneovim-fdba1761f655ece7d6124570d20cc498c67f947e.tar.gz
rneovim-fdba1761f655ece7d6124570d20cc498c67f947e.tar.bz2
rneovim-fdba1761f655ece7d6124570d20cc498c67f947e.zip
Extract keymap.c from misc2.c
Diffstat (limited to 'src/keymap.h')
-rw-r--r--src/keymap.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/keymap.h b/src/keymap.h
index 140eee5322..7c80e45f8d 100644
--- a/src/keymap.h
+++ b/src/keymap.h
@@ -6,6 +6,9 @@
* Do ":help credits" in Vim to see a list of people who contributed.
*/
+#ifndef NEOVIM_KEYMAP_H
+#define NEOVIM_KEYMAP_H
+
/*
* Keycode definitions for special keys.
*
@@ -497,3 +500,19 @@ enum key_extra {
* This is a total of 6 tokens, and is currently the longest one possible.
*/
#define MAX_KEY_CODE_LEN 6
+
+int name_to_mod_mask(int c);
+int simplify_key(int key, int *modifiers);
+int handle_x_keys(int key);
+char_u *get_special_key_name(int c, int modifiers);
+int trans_special(char_u **srcp, char_u *dst, int keycode);
+int find_special_key(char_u **srcp, int *modp, int keycode,
+ int keep_x_key);
+int extract_modifiers(int key, int *modp);
+int find_special_key_in_table(int c);
+int get_special_key_code(char_u *name);
+char_u *get_key_name(int i);
+int get_mouse_button(int code, int *is_click, int *is_drag);
+int get_pseudo_mouse_code(int button, int is_click, int is_drag);
+
+#endif /* NEOVIM_KEYMAP_H */