24 #include "slcd.h" |
24 #include "slcd.h" |
25 #include "futil.h" |
25 #include "futil.h" |
26 #include "sockio.h" |
26 #include "sockio.h" |
27 |
27 |
28 #ifdef HAVE_SDL_SDL_H |
28 #ifdef HAVE_SDL_SDL_H |
29 |
|
30 #define SLCD_NULL 0x0000 |
|
31 #define SLCD_CLEAR 0x0001 |
|
32 #define SLCD_MCLEAR 0x1fff |
|
33 #define SLCD_HOME 0x0002 |
|
34 #define SLCD_MHOME 0x1ffe |
|
35 #define SLCD_DGRAM 0x0080 |
|
36 #define SLCD_MDGRAM 0x1f80 |
|
37 #define SLCD_DATA 0x0200 |
|
38 #define SLCD_MDATA 0x1e00 |
|
39 #define SLCD_LEDS 0x0400 |
|
40 #define SLCD_MLEDS 0x1c00 |
|
41 #define SLCD_KEYS 0x0800 |
|
42 #define SLCD_MKEYS 0x1800 |
|
43 #define SLCD_MDEV 0xe000 |
|
44 |
29 |
45 |
30 |
46 int sock = -1; /* Unix datagram socket */ |
31 int sock = -1; /* Unix datagram socket */ |
47 struct sockaddr_in servaddr; /* Server socket address */ |
32 struct sockaddr_in servaddr; /* Server socket address */ |
48 uint16_t keys = SLCD_KEYS; /* Pressed keys bits */ |
33 uint16_t keys = SLCD_KEYS; /* Pressed keys bits */ |