summaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'input.h')
-rw-r--r--input.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/input.h b/input.h
index 33f349f..85dbdde 100644
--- a/input.h
+++ b/input.h
@@ -2,22 +2,8 @@
#define _INPUT_H
#include "editor.h"
+#include <SDL2/SDL_keyboard.h>
-enum editor_key {
- BACKSPACE = 127,
- ARROW_LEFT = 1000,
- ARROW_RIGHT,
- ARROW_UP,
- ARROW_DOWN,
- DELETE_KEY,
- HOME_KEY,
- END_KEY,
- PAGE_UP,
- PAGE_DOWN
-};
-
-#define CTRL_KEY(k) ((k) & 0x1f)
-
-void editor_process_keypress(struct editor_state *editor, int keycode);
+void editor_process_keypress(struct editor_state *editor, SDL_Keysym *keysym);
#endif