<< 27/31 >>
First Last

キーコンフィグ

 KEY(XK_h, ev_left_focus, "")
 KEY(XK_j, ev_down_focus, "")
 KEY(XK_k, ev_up_focus, "")
 KEY(XK_l, ev_right_focus, "")
 KEY(XK_y, ev_upleft_focus, "")
 KEY(XK_u, ev_upright_focus, "")
 KEY(XK_b, ev_downleft_focus, "")
 KEY(XK_n, ev_downright_focus, "")

コンパイル時設定 (最近は動的にも変えられるけど)

  #define KEY(K, E, A) K,
  int keys_key[] = {
  #include "config_key.def"
  };
  #undef KEY
  
  #define KEY(K, E, A) E,
  void (*keys_ev[]) (EvArgs) = {
  #include "config_key.def"
  };
  #undef KEY
  
  #define KEY(K, E, A) A,
  EvArgs keys_args[] = {
  #include "config_key.def"
  };
  #undef KEY