NAME

XSetDeviceValuators - initialize the valuators on an extension input device

SYNTAX

XSetDeviceValuators(_d_i_s_p_l_a_y, _d_e_v_i_c_e, _v_a_l_u_a_t_o_r_s, _f_i_r_s_t___v_a_l_u_a_t_o_r, _n_u_m___v_a_l_u_a_t_o_r_s)
Display *_d_i_s_p_l_a_y;
XDevice *_d_e_v_i_c_e;
int *_v_a_l_u_a_t_o_r_s;
int _f_i_r_s_t___v_a_l_u_a_t_o_r;
int _n_u_m___v_a_l_u_a_t_o_r_s;

ARGUMENTS

display
Specifies the connection to the X server.
device
Specifies the device whose valuators are to be initialized.
valuators
Specifies a pointer to an array of integer values to be used to initialize the device valuators.
first_valuator
Specifies the first valuator to be set. Valuators are numbered beginning with zero.
num_valuators
Specifies the number of valuators to be set.

DESCRIPTION

The _X_S_e_t_D_e_v_i_c_e_V_a_l_u_a_t_o_r_s request sets the current values of the valuators of an input device. The valuators in the range first_valuator to (first_valuator + num_valuators) are set to the specified values. Valuators are numbered beginning with 0. Not all input devices support initialization of valuator values. If this request is made to a device that does not support valuators initialization, a _B_a_d_M_a_t_c_h error will occur.

If the request succeeds, a status of Success is returned. If another client has the device grabbed, a status of AlreadyGrabbed is returned.

_X_S_e_t_D_e_v_i_c_e_V_a_l_u_a_t_o_r_s can generate a _B_a_d_L_e_n_g_t_h, _B_a_d_D_e_v_i_c_e , _B_a_d_M_a_t_c_h, or _B_a_d_V_a_l_u_e error.

DIAGNOSTICS

_B_a_d_D_e_v_i_c_e
An invalid device was specified. The specified device does not exist or has not been opened by this client via _X_O_p_e_n_I_n_p_u_t_D_e_v_i_c_e.
_B_a_d_M_a_t_c_h
This error may occur if an _X_S_e_t_D_e_v_i_c_e_V_a_l_u_a_t_o_r_s request is made specifying a device that has no valuators and reports no axes of motion, or if such a request is made specifying a device that does not support valuator initialization.
_B_a_d_V_a_l_u_e
An invalid first_valuator or num_valuators values was specified.

SEE ALSO


_P_r_o_g_r_a_m_m_i_n_g _w_i_t_h _X_l_i_b