ARGUMENTS

display Specifies the connection to the X server.
screen Specifies which screen number the setting apply to.
event_base_return Returns the base event number for the extension.
error_base_return Returns the base error number for the extension.
major_version_return
Returns the major version number of the extension.
minor_version_return
Returns the minor version number of the extension.
mseinfo Specifies a structure which contains the mouse
parameters.
kbdinfo Specifies a structure which contains the keyboard
parameters.

DESCRIPTION

These functions provide an interface to the XFree86-Misc extension
which allows various server settings to be queried and changed
dynamically. Applications that use these functions must be linked with
-lXxf86miscPOWER-SAVERFUNCTIONS
The XF86MiscGetSaver and XF86MiscSetSaver functions have been removed.
This functionality is now provided by the DPMS extension.
MOUSEFUNCTIONS
Mouse parameters can be queried using the function
XF86MiscGetMouseSettings. The structure pointed to by its second
argument is filled in with the current mouse settings.
Not all fields are valid in all cases. For example, when the protocol
indicates a bus mouse (i.e. the type field has value MTYPE_BUSMOUSE as
defined in xf86misc.h), then the value in the baudrate field should be
ignored as it does not apply to bus mice.
The samplerate field contains the resolution in lines per inch when
using the Hitachi tablet protocol.
The device field of the structure points to dynamically allocated
storage which should be freed by the caller.
Any of the fields of the structure can be altered and then passed to
the XF86MiscSetMouseSettings function to change their value in the
server, with the following restrictions:
1) The device can not be changed
2) The protocol can not be changed to or from Xqueue or OsMouse
3) The buttons field can not be changed
4) Invalid combinations of parameters are not allowed
The server will generate an error if any of the above is attempted,
except the first - the contents of the device field are simply ignored.
A change of the protocol causes the device to be closed and reopened.
Changes to the baud rate, sample rate, resolution or flags, when
applicable to the selected protocol, also cause a reopen of the device.
A reopen can be forced by using the MF_REOPEN flag, except in the case
of the OsMouse and Xqueue protocols which ignore all attempts to reopen
the device.
KEYBOARDFUNCTIONS
The XF86MiscGetKbdSettings function allows you to retrieve the current
keyboard-related settings from the server.
Using the XF86MiscSetKbdSettings function, the keyboard autorepeat
delay and rate can be set. Requests to change the type and servnumlock
fields are ignored (except for checking for an invalid keyboard type).
This is expected to change in a future release.
OTHERFUNCTIONS
Two functions, XF86MiscQueryExtension and XF86MiscQueryVersion, are
provided which allow the client to query some information regarding the
extension itself.