-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEasyInput.h
62 lines (52 loc) · 1.12 KB
/
EasyInput.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
52
53
54
55
56
57
58
59
60
61
62
#ifndef _EASYINPUT
#define _EASYINPUT
#include "fxlib.h"
enum
{
EI_NORMAL = 1,
EI_ALPHA,
EI_ALPHA_LOCKED
};
enum
{
EI_ALIGN_LEFT = 1,
EI_ALIGN_CENTER,
EI_ALIGN_RIGHT
};
enum
{
EI_GET_ALL = -1,
EI_SET_COLUMN,
EI_SET_ROW,
EI_SET_BOX_LENGTH,
EI_SET_ALIGN,
EI_SET_START_MODE,
EI_SET_Aa_KEY
};
typedef struct
{
unsigned int column;
unsigned int row;
unsigned int box_length;
unsigned int align;
unsigned int start_mode;
unsigned int Aa_key;
} EI_config;
typedef struct
{
int flashstyle; // -1 if not flashing, else flashmode
int column; // starts at 1
int row; // starts at 1
int graphic_mode;
} EI_cursor_settings;
char *EI_input_string(int string_length, const char *chars_allowed);
const void *EI_manage_config(int parameter, int value);
void EI_init(void);
int EI_str_length(const char *str);
int EI_check_char(char c, const char* chars_allowed);
void EI_KBD_PutKey(unsigned int keycode, int mode);
int EI_Cursor_SetPosition(char column, char row);
int EI_Cursor_SetFlashOn(char flashstyle);
void EI_Cursor_SetFlashOff(void);
int EI_Cursor_GetSettings(EI_cursor_settings *cursor_settings);
#endif