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

  1.  
  2.  
  3.  
  4. XSetPointerMapping(3X11)  XLIB FUNCTIONS XSetPointerMapping(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XSetPointerMapping, XGetPointerMapping - manipulate
  9.        pointer settings
  10.  
  11. SSYYNNTTAAXX
  12.        int XSetPointerMapping(_d_i_s_p_l_a_y, _m_a_p, _n_m_a_p)
  13.          Display *_d_i_s_p_l_a_y;
  14.          unsigned char _m_a_p[];
  15.          int _n_m_a_p;
  16.  
  17.        int XGetPointerMapping(_d_i_s_p_l_a_y, _m_a_p___r_e_t_u_r_n, _n_m_a_p)
  18.          Display *_d_i_s_p_l_a_y;
  19.          unsigned char _m_a_p___r_e_t_u_r_n[];
  20.          int _n_m_a_p;
  21.  
  22. AARRGGUUMMEENNTTSS
  23.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  24.  
  25.        _m_a_p     Specifies the mapping list.
  26.  
  27.        _m_a_p___r_e_t_u_r_n
  28.          Returns the mapping list.
  29.  
  30.        _n_m_a_p     Specifies the number of items in the mapping
  31.          list.
  32.  
  33. DDEESSCCRRIIPPTTIIOONN
  34.        The _X_S_e_t_P_o_i_n_t_e_r_M_a_p_p_i_n_g function sets the mapping of the
  35.        pointer.     If it succeeds, the X server generates a _M_a_p_-
  36.        _p_i_n_g_N_o_t_i_f_y event, and _X_S_e_t_P_o_i_n_t_e_r_M_a_p_p_i_n_g returns
  37.        _M_a_p_p_i_n_g_S_u_c_c_e_s_s.    Element map[i] defines the logical button
  38.        number for the physical button i+1.  The length of the
  39.        list must be the same as _X_G_e_t_P_o_i_n_t_e_r_M_a_p_p_i_n_g would return,
  40.        or a _B_a_d_V_a_l_u_e error results.  A zero element disables a
  41.        button, and elements are not restricted in value by the
  42.        number of physical buttons.  However, no two elements can
  43.        have the same nonzero value, or a _B_a_d_V_a_l_u_e error results.
  44.        If any of the buttons to be altered are logically in the
  45.        down state, _X_S_e_t_P_o_i_n_t_e_r_M_a_p_p_i_n_g returns _M_a_p_p_i_n_g_B_u_s_y, and
  46.        the mapping is not changed.
  47.  
  48.        _X_S_e_t_P_o_i_n_t_e_r_M_a_p_p_i_n_g can generate a _B_a_d_V_a_l_u_e error.
  49.  
  50.        The _X_G_e_t_P_o_i_n_t_e_r_M_a_p_p_i_n_g function returns the current map-
  51.        ping of the pointer.  Pointer buttons are numbered start-
  52.        ing from one.  _X_G_e_t_P_o_i_n_t_e_r_M_a_p_p_i_n_g returns the number of
  53.        physical buttons actually on the pointer.  The nominal
  54.        mapping for a pointer is map[i]=i+1.  The nmap argument
  55.        specifies the length of the array where the pointer map-
  56.        ping is returned, and only the first nmap elements are
  57.        returned in map_return.
  58.  
  59. DDIIAAGGNNOOSSTTIICCSS
  60.        _B_a_d_V_a_l_u_e     Some numeric value falls outside the range of
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XSetPointerMapping(3X11)  XLIB FUNCTIONS XSetPointerMapping(3X11)
  71.  
  72.  
  73.          values accepted by the request.  Unless a spe-
  74.          cific range is specified for an argument, the
  75.          full range defined by the argument's type is
  76.          accepted.  Any argument defined as a set of
  77.          alternatives can generate this error.
  78.  
  79. SSEEEE AALLSSOO
  80.        XChangeKeyboardControl(3X11), XChangeKeyboardMapping(3X11)
  81.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  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.