This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
keypad.h
74 lines (60 loc) · 1.49 KB
/
keypad.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
63
64
65
66
67
68
69
70
71
72
73
74
/*
* $Id: keypad.h 420 2006-01-05 14:09:21Z arnaldo $
*/
#ifndef _KEYPAD_H
#define _KEYPAD_H
#define KEYPAD_W 332
#define KEYPAD_H 430
#define KEYPAD_MASK "phone-mask.bmp"
#define XLCD_X 35
#define XLCD_Y 22
#define KEYPAD_XLCD "display.bmp"
#define MUTE_LED_X 175
#define MUTE_LED_Y 225
#define MUTE_LED_W 7
#define MUTE_LED_H 7
#define BOOST_LED_X 175
#define BOOST_LED_Y 251
#define BOOST_LED_W 7
#define BOOST_LED_H 7
#define LINE1_LED_X 257
#define LINE1_LED_Y 225
#define LINE1_LED_W 7
#define LINE1_LED_H 7
#define LINE2_LED_X 257
#define LINE2_LED_Y 251
#define LINE2_LED_W 7
#define LINE2_LED_H 7
#define HOLD_LED_X 175
#define HOLD_LED_Y 277
#define HOLD_LED_W 7
#define HOLD_LED_H 7
#define TRANSFER_LED_X 175
#define TRANSFER_LED_Y 303
#define TRANSFER_LED_W 7
#define TRANSFER_LED_H 7
#define LED_ON_R 0
#define LED_ON_G 225
#define LED_ON_B 69
#define LED_OFF_R 0
#define LED_OFF_G 35
#define LED_OFF_B 11
typedef int PRIAX_Led;
enum {
MuteLed= 0,
BoostLed,
Line1Led,
Line2Led,
HoldLed,
TransferLed,
};
extern void PRIAX_InitKeypad(SDL_Surface *screen, PRIAX_Conf *conf);
extern void *PRIAX_KeypadGetEv();
extern void PRIAX_KeypadSetEv(void(*ptr)(char *keyname));
extern void PRIAX_ActiveLed(PRIAX_Led led);
extern void PRIAX_DeactiveLed(PRIAX_Led led);
extern SDL_Surface *PRIAX_MainScreen();
extern SDL_Surface *PRIAX_LCD(int *x, int *y);
extern void ShowMainWindow(void);
extern void HideMainWindow(void);
#endif /* keypad.h */