root/include/kbd_common.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2 Common low level keyboard code. This file must not be included in module or platform independent code
   3 This file is the interface between core/kbd_common.c and the platforms kbd.c file
   4 Platform specific defines go in platform_kbd.h, see kbd_common.c for documentation
   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 // TODO not clear these should be include in the main keymap
  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 // key to canon bit mapping
  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 // 0 send jogdial events to canon firmware, 1 block
  42 void jogdial_control(int n);
  43 extern int jogdial_stopped;
  44 
  45 // sanity checks. These can't be in camera.h because they depend on platform_kbd.h
  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

/* [<][>][^][v][top][bottom][index][help] */