1
2
3
4
5
6 #ifndef KBD_COMMON_H
7 #define KBD_COMMON_H
8
9 #include "platform_kbd.h"
10
11 typedef struct {
12 short grp;
13 short hackkey;
14 long canonkey;
15
16 #ifdef CAM_TOUCHSCREEN_UI
17 short x1, y1, x2, y2;
18 #ifdef CAM_TOUCHSCREEN_SYMBOLS
19 short sc;
20 #endif
21 short redraw;
22 char *nm, *nm2;
23 int min_gui_mode, max_gui_mode, cam_mode_mask;
24 int *conf_val;
25 const char* (*chg_val)(int,int);
26 int *conf_disable;
27 #endif
28 } KeyMap;
29
30
31 extern KeyMap keymap[];
32
33 extern long kbd_new_state[];
34 extern long kbd_mod_state[];
35 extern long kbd_prev_state[];
36
37 long kbd_update_key_state(void);
38 void kbd_update_physw_bits(void);
39 void kbd_fetch_data(long *data);
40
41
42 void jogdial_control(int n);
43 extern int jogdial_stopped;
44
45
46 #if defined(CAM_UNLOCK_ANALOG_AV_IN_REC) && !defined(ANALOG_AV_FLAG)
47 #error "CAM_UNLOCK_ANALOG_AV_IN_REC requires ANALOG_AV_FLAG"
48 #endif
49
50 #if defined(CAM_REMOTE_ANALOG_AV) && !defined(ANALOG_AV_FLAG)
51 #error "CAM_REMOTE_ANALOG_AV requires ANALOG_AV_FLAG"
52 #endif
53
54 #if defined(CAM_REMOTE_HDMI_HPD) && !defined(HDMI_HPD_FLAG)
55 #error "CAM_REMOTE_HDMI_HPD requires HDMI_HPD_FLAG"
56 #endif
57
58 #endif