-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.h
51 lines (35 loc) · 827 Bytes
/
input.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef INPUT_H
#define INPUT_H
#include "geometry.h"
#define MODE_DRAWING 1
#define MODE_LINE 2
#define MODE_PAINT_BACK 3
#define MODE_PAINT_FORE 4
#define MODE_CHANGE_CHAR 5
typedef struct HOTKEY_
{
int keys[3];
int enabled;
void (* hotkey_action)(int);
int hotkey_action_option;
}
HOTKEY;
typedef int HOTKEY_INDEX;
int get_current_mode();
int get_cursor_x();
int get_cursor_y();
unsigned char get_selected_attribute();
void edge_event(int delta_x, int delta_y);
void move_cursor(int delta_x, int delta_y);
int inside_rect(int x, int y, RECT rect);
void brush_select_screen_cursor_action();
void change_mode(int mode);
void cursor_action();
void input_cursor();
void input_brush_select();
void input_canvas_view();
void input_ui();
void input_ui_peek();
void handle_input();
void destroy_input();
#endif