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

  1.  
  2.  
  3.  
  4. XSetDeviceMode(3X11)       X FUNCTIONS         XSetDeviceMode(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XSetDeviceMode - change the mode of a device
  9.  
  10. SSYYNNTTAAXX
  11.        XSetDeviceMode(_d_i_s_p_l_a_y, _d_e_v_i_c_e, _m_o_d_e)
  12.          Display *_d_i_s_p_l_a_y;
  13.          XDevice *_d_e_v_i_c_e;
  14.          int ___m_o_d_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  whose  mode    is  to be
  20.            changed.
  21.  
  22.        _m_o_d_e       Specifies the mode.    You can pass  _A_b_s_o_l_u_t_e    ,
  23.            or _R_e_l_a_t_i_v_e.
  24.  
  25. DDEESSCCRRIIPPTTIIOONN
  26.        The  _X_S_e_t_D_e_v_i_c_e_M_o_d_e  request  changes the mode of an input
  27.        device that is capable of reporting either absolute  posi-
  28.        tional  information  or    relative motion information.  Not
  29.        all input devices are capable of     reporting  motion  data,
  30.        and not all are capable of changing modes from _A_b_s_o_l_u_t_e to
  31.        _R_e_l_a_t_i_v_e.
  32.  
  33.        _X_S_e_t_D_e_v_i_c_e_M_o_d_e can generate a _B_a_d_D_e_v_i_c_e or _B_a_d_M_o_d_e  error.
  34.  
  35. DDIIAAGGNNOOSSTTIICCSS
  36.        _B_a_d_D_e_v_i_c_e   An  invalid    device was specified.  The speci-
  37.            fied device does not exist  or  has    not  been
  38.            opened  by  this  client via _X_O_p_e_n_I_n_p_u_t_D_e_v_i_c_e.
  39.            This error may also occur if some other client
  40.            has    caused the specified device to become the
  41.            X  keyboard    or  X  pointer    device    via   the
  42.            _X_C_h_a_n_g_e_K_e_y_b_o_a_r_d_D_e_v_i_c_e  or _X_C_h_a_n_g_e_P_o_i_n_t_e_r_D_e_v_i_c_e
  43.            requests.
  44.  
  45.        _B_a_d_M_a_t_c_h       This error  may  occur  if  an  _X_S_e_t_D_e_v_i_c_e_M_o_d_e
  46.            request  is    made specifying a device that has
  47.            no valuators and reports no axes of motion.
  48.  
  49.        _B_a_d_M_o_d_e       An invalid mode  was     specified.   This  error
  50.            will     also be returned if the specified device
  51.            is not capable of supporting     the  _X_S_e_t_D_e_v_i_c_e_-
  52.            _M_o_d_e request.
  53.  
  54. SSEEEE AALLSSOO
  55.        _P_r_o_g_r_a_m_m_i_n_g _w_i_t_h _X_l_i_b
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.