XF86MISC


HOME

XF86MISC

NAME
SYNTAX
ARGUMENTS
STRUCTURES
DESCRIPTION
PREDEFINED VALUES
SEE ALSO
AUTHORS

NAME

XF86MiscQueryExtension, XF86MiscQueryVersion, XF86MiscGetMouseSettings, XF86MiscSetMouseSettings, XF86MiscGetKbdSettings, XF86MiscSetKbdSettings − Extension library for the XFree86-Misc X extension.

SYNTAX

#include <X11/extensions/xf86misc.h>

Bool XF86MiscQueryExtension(
Display *display,
int *event_base_return,
int *error_base_return);

Bool XF86MiscQueryVersion(
Display *display,
int *major_version_return,
int *minor_version_return);

Status XF86MiscGetMouseSettings(
Display *display,
XF86MiscMouseSettings *mseinfo);

Status XF86MiscSetMouseSettings(
Display *display,
XF86MiscMouseSettings *mseinfo);

Status XF86MiscGetKbdSettings(
Display *display,
XF86MiscKbdSettings *kbdinfo);

Status XF86MiscSetKbdSettings(
Display *display,
XF86MiscKbdSettings *kbdinfo);

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.

STRUCTURES

Mouse:
typedef struct {

char *device;

/td>

/∗ returned path to device */
int type;

/∗ mouse protocol */
int baudrate;

/∗ 1200, 2400, 4800, or 9600 */
int samplerate;

/∗ samples per second */
int resolution;

/∗ resolution, count per inch */
int buttons;

/∗ number of buttons */
Bool emulate3buttons;

/∗ Button1+Button3 -> Button2 ? */
int emulate3timeout;

/∗ in milliseconds */
Bool chordmiddle;

/∗ Button1+Button3 == Button2 ? */
int flags;

/∗ Device open flags */

} XF86MiscMouseSettings;

Keyboard:
typedef struct {

int type;

/td>

/∗ of keyboard: 84-key, 101-key, Xqueue */
int rate;

/∗ repeat rate */
int delay;

/∗ delay until repeat starts */
Bool servnumlock;

/∗ Server handles NumLock ? */

} XF86MiscKbdSettings;

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 -lXxf86misc

POWER-SAVER FUNCTIONS
The XF86MiscGetSaver and XF86MiscSetSaver functions have been removed. This functionality is now provided by the DPMS extension.

MOUSE FUNCTIONS
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.

KEYBOARD FUNCTIONS
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.

OTHER FUNCTIONS
Two functions, XF86MiscQueryExtension and XF86MiscQueryVersion, are provided which allow the client to query some information regarding the extension itself.

PREDEFINED VALUES

The header file X11/extensions/xf86misc.h contains definitions for

MTYPE_*

Mouse protocols

KTYPE_*

Keyboard types

MF_*

Mouse flags

SEE ALSO

xset(1), xorg.conf(5)

AUTHORS

Joe Moss and David Dawes, The XFree86 Project, Inc.



More Linux Commands

manpages/XkbAllocGeomOverlayRows.3.html
XkbAllocGeomOverlayRows(3) - Allocate rows in a overlay.....
XkbAllocGeomOverlayRows.3 - Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modif

manpages/mousemask.3ncurses.html
mousemask(3ncurses) - mouse interface through curses........
These functions provide an interface to mouse events from ncurses(3NCURSES). Mouse events are represented by KEY_MOUSE pseudo-key values in the wgetch input str

manpages/XKeyEvent.3.html
XKeyEvent(3) - KeyPress, KeyRelease, ButtonPress, ButtonRele
The structures for KeyPress, KeyRelease, ButtonPress, ButtonRelease, and MotionNotify events contain: typedef struct { int type; /* ButtonPress or ButtonRelease

manpages/SDL_SemTryWait.3.html
SDL_SemTryWait(3) - Attempt to lock a semaphore but don.....
SDL_SemTryWait is a non-blocking varient of SDL_SemWait. If the value of the semaphore pointed to by sem is positive it will atomically decrement the semaphore

manpages/evim.1.html
evim(1) - easy Vim, edit a file with Vim and setup for model
eVim starts Vim and sets options to make it behave like a modeless editor. This is still Vim but used as a point-and-click editor. This feels a lot like using N

manpages/rmdir.2.html
rmdir(2) - delete a directory (System - Linux man page).....
rmdir() deletes a directory, which must be empty. RETURN VALUE On success, zero is returned. On error, -1 is returned, and errno is set appropriately. ERRORS EA

manpages/glVertex3fv.3gl.html
glVertex3fv(3gl) - specify a vertex - Linux manual page.....
glVertex commands are used within glBegin/glEnd pairs to specify point, line, and polygon vertices. The current color, normal, and texture coordinates are assoc

manpages/Mail::SpamAssassin::Timeout.3pm.html
Mail::SpamAssassin::Timeout(3pm) - safe, reliable timeouts i
This module provides a safe, reliable and clean API to provide alarm(2)-based timeouts for perl code. Note that $SIG{ALRM} is used to provide the timeout, so th

manpages/idlok.3ncurses.html
idlok(3ncurses) - curses output options - Linux manual page
These routines set options that change the style of output within curses. All options are initially FALSE, unless otherwise stated. It is not necessary to turn

manpages/XtPopdown.3.html
XtPopdown(3) - unmap a pop-up (Library - Linux man page)....
The XtPopdown function performs the following: * Calls XtCheckSubclass to ensure popup_shell is a subclass of Shell. * Checks that popup_shell is currently popp

manpages/glPushClientAttrib.3gl.html
glPushClientAttrib(3gl) - push and pop the client attribute
glPushClientAttrib takes one argument, a mask that indicates which groups of client-state variables to save on the client attribute stack. Symbolic constants ar

manpages/netsnmp_config_api.3.html
netsnmp_config_api(3) - netsnmp_config_api functions........
The functions are a fairly extensible system of parsing various configuration files at the run time of an application. The configuration file flow is broken int





We can't live, work or learn in freedom unless the software we use is free.