home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XGetDeviceKeyMapping(3X11) X FUNCTIONS XGetDeviceKeyMapping(3X11)
-
-
- NNAAMMEE
- XGetDeviceKeyMapping, XChangeDeviceKeyMapping - query or
- change device key mappings
-
- SSYYNNTTAAXX
- XXCChhaannggeeDDeevviicceeKKeeyyMMaappppiinngg((_d_i_s_p_l_a_y,, _d_e_v_i_c_e,, _f_i_r_s_t___k_e_y_c_o_d_e,,
- _k_e_y_s_y_m_s___p_e_r___k_e_y_c_o_d_e,, _k_e_y_s_y_m_s,, _k_e_y_c_o_d_e___c_o_u_n_t))
- DDiissppllaayy **_d_i_s_p_l_a_y;;
- XXDDeevviiccee **_d_e_v_i_c_e;;
- iinntt _f_i_r_s_t___k_e_y_c_o_d_e;;
- iinntt _k_e_y_s_y_m_s___p_e_r___k_e_y_c_o_d_e;;
- KKeeyySSyymm **_k_e_y_s_y_m_s;;
- iinntt _k_e_y_c_o_d_e___c_o_u_n_t;;
-
- KKeeyySSyymm **XXGGeettDDeevviicceeKKeeyyMMaappppiinngg((_d_i_s_p_l_a_y,, _d_e_v_i_c_e,, _f_i_r_s_t___k_e_y_c_o_d_e,, _k_e_y_c_o_d_e___c_o_u_n_t,,
- _k_e_y_s_y_m_s___p_e_r___k_e_y_c_o_d_e___r_e_t_u_r_n))
- DDiissppllaayy **_d_i_s_p_l_a_y;;
- XXDDeevviiccee **_d_e_v_i_c_e;;
- KKeeyyCCooddee _f_i_r_s_t___k_e_y_c_o_d_e;;
- iinntt _k_e_y_c_o_d_e___c_o_u_n_t;;
- iinntt **_k_e_y_s_y_m_s___p_e_r___k_e_y_c_o_d_e___r_e_t_u_r_n;;
-
-
- AARRGGUUMMEENNTTSS
- _d_i_s_p_l_a_y Specifies the connection to the X server.
-
- _d_e_v_i_c_e Specifies the device whose key mapping is to
- be queried or modified.
-
- _f_i_r_s_t___k_e_y_c_o_d_e
- Specifies the first KeyCode to be returned.
-
- _k_e_y_c_o_d_e___c_o_u_n_t
- Specifies the number of KeyCodes to be
- returned or modified.
-
- _k_e_y_s_y_m_s___p_e_r___k_e_y_c_o_d_e
- Specifies the number of KeySyms per KeyCode.
-
- _k_e_y_s_y_m_s___p_e_r___k_e_y_c_o_d_e___r_e_t_u_r_n
- Specifies the address of a variable into which
- the number of KeySyms per KeyCode will be
- returned.
-
- _k_e_y_s_y_m_s Specifies the address of an array of KeySyms.
-
- DDEESSCCRRIIPPTTIIOONN
- For the specified device, the _X_G_e_t_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g request
- returns the symbols for the specified number of KeyCodes
- starting with first_keycode. The value specified in
- first_keycode must be greater than or equal to min_keycode
- as returned by _X_L_i_s_t_I_n_p_u_t_D_e_v_i_c_e_s, or a _B_a_d_V_a_l_u_e error
- results. In addition, the following expression must be
- less than or equal to max_keycode as returned by
-
-
-
- X Version 11 Release 6.1 1
-
-
-
-
-
- XGetDeviceKeyMapping(3X11) X FUNCTIONS XGetDeviceKeyMapping(3X11)
-
-
- _X_L_i_s_t_I_n_p_u_t_D_e_v_i_c_e_s:
-
- first_keycode + keycode_count - 1
-
- If this is not the case, a _B_a_d_V_a_l_u_e error results. The
- number of elements in the KeySyms list is:
-
- keycode_count * keysyms_per_keycode_return
-
- KeySym number N, counting from zero, for KeyCode K has the
- following index in the list, counting from zero: (K -
- first_code) * keysyms_per_code_return + N
-
- The X server arbitrarily chooses the
- keysyms_per_keycode_return value to be large enough to
- report all requested symbols. A special KeySym value of
- _N_o_S_y_m_b_o_l is used to fill in unused elements for individual
- KeyCodes. To free the storage returned by _X_G_e_t_D_e_-
- _v_i_c_e_K_e_y_M_a_p_p_i_n_g, use _X_F_r_e_e.
-
- If the specified device does not support input class keys,
- a _B_a_d_M_a_t_c_h error will result.
-
- _X_G_e_t_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g can generate a _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.
-
- For the specified device, the _X_C_h_a_n_g_e_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g
- request defines the symbols for the specified number of
- KeyCodes starting with first_keycode. The symbols for
- KeyCodes outside this range remain unchanged. The number
- of elements in keysyms must be:
-
- num_codes * keysyms_per_keycode
-
- The specified first_keycode must be greater than or equal
- to min_keycode returned by _X_L_i_s_t_I_n_p_u_t_D_e_v_i_c_e_s, or a _B_a_d_-
- _V_a_l_u_e error results. In addition, the following expres-
- sion must be less than or equal to max_keycode as returned
- by _X_L_i_s_t_I_n_p_u_t_D_e_v_i_c_e_s, or a _B_a_d_V_a_l_u_e error results:
-
- first_keycode + num_codes - 1
-
- KeySym number N, counting from zero, for KeyCode K has the
- following index in keysyms, counting from zero:
-
- (K - first_keycode) * keysyms_per_keycode + N
-
- The specified keysyms_per_keycode can be chosen arbitrar-
- ily by the client to be large enough to hold all desired
- symbols. A special KeySym value of _N_o_S_y_m_b_o_l should be
- used to fill in unused elements for individual KeyCodes.
- It is legal for _N_o_S_y_m_b_o_l to appear in nontrailing posi-
- tions of the effective list for a KeyCode. _X_C_h_a_n_g_e_D_e_-
- _v_i_c_e_K_e_y_M_a_p_p_i_n_g generates a _D_e_v_i_c_e_M_a_p_p_i_n_g_N_o_t_i_f_y event that
-
-
-
- X Version 11 Release 6.1 2
-
-
-
-
-
- XGetDeviceKeyMapping(3X11) X FUNCTIONS XGetDeviceKeyMapping(3X11)
-
-
- is sent to all clients that have selected that type of
- event.
-
- There is no requirement that the X server interpret this
- mapping. It is merely stored for reading and writing by
- clients.
-
- If the specified device does not support input class keys,
- a _B_a_d_M_a_t_c_h error results.
-
- _X_C_h_a_n_g_e_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g can generate a _B_a_d_D_e_v_i_c_e, _B_a_d_-
- _M_a_t_c_h, _B_a_d_A_l_l_o_c, or _B_a_d_V_a_l_u_e error.
-
-
- DDIIAAGGNNOOSSTTIICCSS
- _B_a_d_D_e_v_i_c_e An invalid device was specified. The speci-
- fied 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.
- This error may also occur if the specified
- device is the X keyboard or X pointer device.
-
- _B_a_d_M_a_t_c_h This error may occur if an _X_G_e_t_D_e_v_i_c_e_K_e_y_M_a_p_-
- _p_i_n_g or _X_C_h_a_n_g_e_D_e_v_i_c_e_K_e_y_M_a_p_p_i_n_g request was
- made specifying a device that has no keys.
-
- _B_a_d_V_a_l_u_e Some numeric value falls outside the range of
- values accepted by the request. Unless a spe-
- cific range is specified for an argument, the
- full range defined by the argument's type is
- accepted. Any argument defined as a set of
- alternatives can generate this error.
-
- _B_a_d_A_l_l_o_c The server failed to allocate the requested
- resource or server memory.
-
- SSEEEE AALLSSOO
- XSetDeviceButtonMapping(3X11)
- XSetDeviceModifierMapping(3X11)
- _P_r_o_g_r_a_m_m_i_n_g _w_i_t_h _X_l_i_b
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- X Version 11 Release 6.1 3
-
-
-