home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xchangekeyboarddevice.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  3.1 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XChangeKeyboardDevice(3X11)X FUNCTIONSXChangeKeyboardDevice(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XChangeKeyboardDevice - change which device is used as the
  9.        X keyboard
  10.  
  11. SSYYNNTTAAXX
  12.        Status XChangeKeyboardDevice(_d_i_s_p_l_a_y, _d_e_v_i_c_e)
  13.          Display *_d_i_s_p_l_a_y;
  14.          XDevice *_d_e_v_i_c_e;
  15.  
  16. AARRGGUUMMEENNTTSS
  17.        _d_i_s_p_l_a_y       Specifies the connection to the X server.
  18.  
  19.        _d_e_v_i_c_e       Specifies the device to be used as the X  key-
  20.            board.
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.        The _X_C_h_a_n_g_e_K_e_y_b_o_a_r_d_D_e_v_i_c_e request causes the server to use
  24.        the specified device as the X keyboard.    The  device  must
  25.        have  been  previously opened by the requesting client via
  26.        _X_O_p_e_n_D_e_v_i_c_e or a _B_a_d_D_e_v_i_c_e error will result.  The  device
  27.        must  support  input  class _K_e_y_s, or a _B_a_d_M_a_t_c_h error will
  28.        result.    If the server  implementation  does  not  support
  29.        using  the requested device as the X keyboard, a _B_a_d_D_e_v_i_c_e
  30.        error will result.
  31.  
  32.        If the specified device    is  grabbed  by     another  client,
  33.        _A_l_r_e_a_d_y_G_r_a_b_b_e_d  is  returned.   If the specified device is
  34.        frozen  by  a  grab  on    another     device,  _G_r_a_b_F_r_o_z_e_n   is
  35.        returned.   If  the  request  is     successful,  _S_u_c_c_e_s_s  is
  36.        returned.
  37.  
  38.        If the request succeeds,     a  _C_h_a_n_g_e_D_e_v_i_c_e_N_o_t_i_f_y    event  is
  39.        sent to all clients that have selected that event.  A _M_a_p_-
  40.        _p_i_n_g_N_o_t_i_f_y event with request = _M_a_p_p_i_n_g_K_e_y_b_o_a_r_d is sent to
  41.        all  clients.  The specified device becomes the X keyboard
  42.        and the old X  keyboard    becomes     accessible  through  the
  43.        input extension protocol requests.
  44.  
  45.        _X_C_h_a_n_g_e_K_e_y_b_o_a_r_d_D_e_v_i_c_e  can  generate a _B_a_d_D_e_v_i_c_e or a _B_a_d_-
  46.        _M_a_t_c_h error.
  47.  
  48. DDIIAAGGNNOOSSTTIICCSS
  49.        _B_a_d_D_e_v_i_c_e   An invalid device was specified.   The  speci-
  50.            fied     device     does  not  exist,  has     not been
  51.            opened by this  client  via    _X_O_p_e_n_I_n_p_u_t_D_e_v_i_c_e,
  52.            or  is  already  one     of  the  core    X  device
  53.            (pointer or keyboard).  This     error    may  also
  54.            occur  if  the  server implementation does not
  55.            support using the specified device  as  the    X
  56.            keyboard.
  57.  
  58.        _B_a_d_M_a_t_c_h       This     error may occur if an _X_C_h_a_n_g_e_K_e_y_b_o_a_r_d_D_e_-
  59.            _v_i_c_e request was made specifying a device that
  60.            has no keys.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XChangeKeyboardDevice(3X11)X FUNCTIONSXChangeKeyboardDevice(3X11)
  71.  
  72.  
  73. SSEEEE AALLSSOO
  74.        XChangePointerDevice
  75.        _P_r_o_g_r_a_m_m_i_n_g _W_i_t_h _X_l_i_b
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.