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

  1.  
  2.  
  3.  
  4. XChangePointerDevice(3X11) X FUNCTIONS XChangePointerDevice(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XChangePointerDevice  -    change    which  device  is  the    X
  9.        pointer
  10.  
  11. SSYYNNTTAAXX
  12.        Status XChangePointerDevice(_d_i_s_p_l_a_y, _d_e_v_i_c_e _x_a_x_i_s, _y_a_x_i_s)
  13.          Display *_d_i_s_p_l_a_y;
  14.          XDevice *_d_e_v_i_c_e;
  15.          int _x_a_x_i_s;
  16.          int _y_a_x_i_s;
  17.  
  18. AARRGGUUMMEENNTTSS
  19.        _d_i_s_p_l_a_y       Specifies the connection to the X server.
  20.  
  21.        _d_e_v_i_c_e       Specifies the device     to  be     used  as  the    X
  22.            pointer.
  23.  
  24.        _x_a_x_i_s       Specifies the axis of the device to be used as
  25.            the X pointer x-axis.
  26.  
  27.        _y_a_x_i_s       Specifies the axis of the device to be used as
  28.            the X pointer y-axis.
  29.  
  30. DDEESSCCRRIIPPTTIIOONN
  31.        The  _X_C_h_a_n_g_e_P_o_i_n_t_e_r_D_e_v_i_c_e request causes the server to use
  32.        the specified device as the X pointer.    The  device  must
  33.        have been opened by the client via _X_O_p_e_n_D_e_v_i_c_e or a _B_a_d_D_e_-
  34.        _v_i_c_e error will result.    The  device  must  support  input
  35.        class  _V_a_l_u_a_t_o_r_s     or a _B_a_d_M_a_t_c_h error will result.  If the
  36.        implementation does  not     support  use  of  the    specified
  37.        device as the X pointer, a _B_a_d_D_e_v_i_c_e error will result.
  38.  
  39.        If  the    specified  device  is  grabbed by another client,
  40.        _A_l_r_e_a_d_y_G_r_a_b_b_e_d is returned.  If the  specified  device  is
  41.        frozen    by  a  grab  on     another  device,  _G_r_a_b_F_r_o_z_e_n  is
  42.        returned.   If  the  request  is     successful,  _S_u_c_c_e_s_s  is
  43.        returned.
  44.  
  45.        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
  46.        sent to all clients that have selected that event.  A _M_a_p_-
  47.        _p_i_n_g_N_o_t_i_f_y  event with request = _M_a_p_p_i_n_g_P_o_i_n_t_e_r is sent to
  48.        all clients.  The specified device becomes the X     pointer,
  49.        and the old X pointer becomes accessible through the input
  50.        extension protocol requests.
  51.  
  52.        _X_C_h_a_n_g_e_P_o_i_n_t_e_r_D_e_v_i_c_e can generate a _B_a_d_D_e_v_i_c_e  or  a  _B_a_d_-
  53.        _M_a_t_c_h error.
  54.  
  55. DDIIAAGGNNOOSSTTIICCSS
  56.        _B_a_d_D_e_v_i_c_e   An  invalid    device was specified.  The speci-
  57.            fied device    does  not  exist,  has    not  been
  58.            opened by this client via _X_O_p_e_n_I_n_p_u_t_D_e_v_i_c_e, or
  59.            is already one of the  core    X  input  devices
  60.            (pointer  or     keyboard).   This error may also
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XChangePointerDevice(3X11) X FUNCTIONS XChangePointerDevice(3X11)
  71.  
  72.  
  73.            occur if the server    implementation    does  not
  74.            support  using  the    specified device as the X
  75.            pointer.
  76.  
  77.        _B_a_d_M_a_t_c_h       This error may occur if  an    _X_C_h_a_n_g_e_P_o_i_n_t_e_r_D_e_-
  78.            _v_i_c_e request was made specifying a device that
  79.            has less than two valuators, or  specifying    a
  80.            valuator  index  beyond the range supported by
  81.            the device.
  82.  
  83. SSEEEE AALLSSOO
  84.        XChangeKeyboardDevice
  85.        _P_r_o_g_r_a_m_m_i_n_g _W_i_t_h _X_l_i_b
  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.