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

  1.  
  2.  
  3.  
  4. XChangePointerControl(3X11)XLIB FUNCTIONXSChangePointerControl(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XChangePointerControl, XGetPointerControl - control
  9.        pointer
  10.  
  11. SSYYNNTTAAXX
  12.        XChangePointerControl(_d_i_s_p_l_a_y, _d_o___a_c_c_e_l, _d_o___t_h_r_e_s_h_o_l_d,
  13.        _a_c_c_e_l___n_u_m_e_r_a_t_o_r,
  14.                    _a_c_c_e_l___d_e_n_o_m_i_n_a_t_o_r, _t_h_r_e_s_h_o_l_d)
  15.          Display *_d_i_s_p_l_a_y;
  16.          Bool _d_o___a_c_c_e_l, _d_o___t_h_r_e_s_h_o_l_d;
  17.          int _a_c_c_e_l___n_u_m_e_r_a_t_o_r, _a_c_c_e_l___d_e_n_o_m_i_n_a_t_o_r;
  18.          int _t_h_r_e_s_h_o_l_d;
  19.  
  20.        XGetPointerControl(_d_i_s_p_l_a_y, _a_c_c_e_l___n_u_m_e_r_a_t_o_r___r_e_t_u_r_n,
  21.        _a_c_c_e_l___d_e_n_o_m_i_n_a_t_o_r___r_e_t_u_r_n,
  22.                   _t_h_r_e_s_h_o_l_d___r_e_t_u_r_n)
  23.          Display *_d_i_s_p_l_a_y;
  24.          int *_a_c_c_e_l___n_u_m_e_r_a_t_o_r___r_e_t_u_r_n,
  25.        *_a_c_c_e_l___d_e_n_o_m_i_n_a_t_o_r___r_e_t_u_r_n;
  26.          int *_t_h_r_e_s_h_o_l_d___r_e_t_u_r_n;
  27.  
  28. AARRGGUUMMEENNTTSS
  29.        _a_c_c_e_l___d_e_n_o_m_i_n_a_t_o_r
  30.          Specifies the denominator for the acceleration
  31.          multiplier.
  32.  
  33.        _a_c_c_e_l___d_e_n_o_m_i_n_a_t_o_r___r_e_t_u_r_n
  34.          Returns the denominator for the acceleration
  35.          multiplier.
  36.  
  37.        _a_c_c_e_l___n_u_m_e_r_a_t_o_r
  38.          Specifies the numerator for the acceleration
  39.          multiplier.
  40.  
  41.        _a_c_c_e_l___n_u_m_e_r_a_t_o_r___r_e_t_u_r_n
  42.          Returns the numerator for the acceleration mul-
  43.          tiplier.
  44.  
  45.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  46.  
  47.        _d_o___a_c_c_e_l     Specifies a Boolean value that controls whether
  48.          the values for the accel_numerator or
  49.          accel_denominator are used.
  50.  
  51.        _d_o___t_h_r_e_s_h_o_l_d
  52.          Specifies a Boolean value that controls whether
  53.          the value for the threshold is used.
  54.  
  55.        _t_h_r_e_s_h_o_l_d Specifies the acceleration threshold.
  56.  
  57.        _t_h_r_e_s_h_o_l_d___r_e_t_u_r_n
  58.          Returns the acceleration threshold.
  59.  
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XChangePointerControl(3X11)XLIB FUNCTIONXSChangePointerControl(3X11)
  71.  
  72.  
  73. DDEESSCCRRIIPPTTIIOONN
  74.        The _X_C_h_a_n_g_e_P_o_i_n_t_e_r_C_o_n_t_r_o_l function defines how the point-
  75.        ing device moves.  The acceleration, expressed as a frac-
  76.        tion, is a multiplier for movement.  For example, specify-
  77.        ing 3/1 means the pointer moves three times as fast as
  78.        normal.    The fraction may be rounded arbitrarily by the X
  79.        server.    Acceleration only takes effect if the pointer
  80.        moves more than threshold pixels at once and only applies
  81.        to the amount beyond the value in the threshold argument.
  82.        Setting a value to -1 restores the default.  The values of
  83.        the do_accel and do_threshold arguments must be _T_r_u_e for
  84.        the pointer values to be set, or the parameters are
  85.        unchanged.  Negative values (other than -1) generate a
  86.        _B_a_d_V_a_l_u_e error, as does a zero value for the
  87.        accel_denominator argument.
  88.  
  89.        _X_C_h_a_n_g_e_P_o_i_n_t_e_r_C_o_n_t_r_o_l can generate a _B_a_d_V_a_l_u_e error.
  90.  
  91.        The _X_G_e_t_P_o_i_n_t_e_r_C_o_n_t_r_o_l function returns the pointer's cur-
  92.        rent acceleration multiplier and acceleration threshold.
  93.  
  94. DDIIAAGGNNOOSSTTIICCSS
  95.        _B_a_d_V_a_l_u_e     Some numeric value falls outside the range of
  96.          values accepted by the request.  Unless a spe-
  97.          cific range is specified for an argument, the
  98.          full range defined by the argument's type is
  99.          accepted.  Any argument defined as a set of
  100.          alternatives can generate this error.
  101.  
  102. SSEEEE AALLSSOO
  103.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  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.