From 1f876171067c04fc21fccd5a3051f982fd85c0f0 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 21 Oct 2009 19:07:36 +0000 Subject: Updated to xorg-server-1.7.99.1 --- xorg-server/hw/dmx/doc/html/dmxinputinit_8h.html | 1294 +++++++++++++++++----- 1 file changed, 992 insertions(+), 302 deletions(-) (limited to 'xorg-server/hw/dmx/doc/html/dmxinputinit_8h.html') diff --git a/xorg-server/hw/dmx/doc/html/dmxinputinit_8h.html b/xorg-server/hw/dmx/doc/html/dmxinputinit_8h.html index 03a64d73d..fcd892e9d 100644 --- a/xorg-server/hw/dmx/doc/html/dmxinputinit_8h.html +++ b/xorg-server/hw/dmx/doc/html/dmxinputinit_8h.html @@ -6,392 +6,1082 @@ - -
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals
-

dmxinputinit.h File Reference

#include "dmx.h"
-#include "dmxinput.h"
-#include "dmxlog.h"
+ + +
+

dmxinputinit.h File Reference

#include "dmx.h"
+#include "dmxinput.h"
+#include "dmxlog.h"
-

-Go to the source code of this file. - - - +

Go to the source code of this file.

+

Data Structures

struct  _DMXEventMap
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Data Structures

struct  _DMXLocalInitInfo
struct  _DMXEventMap
struct  _DMXLocalInputInfo

Defines

#define DMX_LOCAL_DEFAULT_KEYBOARD   "kbd"
#define DMX_LOCAL_DEFAULT_POINTER   "ps2"
#define DMX_MAX_BUTTONS   256
#define DMX_MOTION_SIZE   256
#define DMX_MAX_VALUATORS   32
#define DMX_MAX_AXES   32
#define DMX_MAX_XINPUT_EVENT_TYPES   100
#define DMX_MAP_ENTRIES   16
#define DMX_MAP_MASK   (DMX_MAP_ENTRIES - 1)

Typedefs

typedef struct _DMXLocalInitInfo DMXLocalInitInfo
typedef struct _DMXLocalInitInfoDMXLocalInitInfoPtr
typedef pointer(* dmxCreatePrivateProcPtr )(DeviceIntPtr)
typedef void(* dmxDestroyPrivateProcPtr )(pointer)
typedef void(* dmxInitProcPtr )(DevicePtr)
typedef void(* dmxReInitProcPtr )(DevicePtr)
typedef void(* dmxLateReInitProcPtr )(DevicePtr)
typedef void(* dmxGetInfoProcPtr )(DevicePtr, DMXLocalInitInfoPtr)
typedef int(* dmxOnProcPtr )(DevicePtr)
typedef void(* dmxOffProcPtr )(DevicePtr)
typedef void(* dmxUpdatePositionProcPtr )(pointer, int x, int y)
typedef void(* dmxVTPreSwitchProcPtr )(pointer)
typedef void(* dmxVTPostSwitchProcPtr )(pointer)
typedef void(* dmxVTSwitchReturnProcPtr )(pointer)
typedef int(* dmxVTSwitchProcPtr )(pointer, int vt, dmxVTSwitchReturnProcPtr, pointer)
typedef void(* dmxMotionProcPtr )(DevicePtr, int *valuators, int firstAxis, int axesCount, DMXMotionType type, DMXBlockType block)
typedef void(* dmxEnqueueProcPtr )(DevicePtr, int type, int detail, KeySym keySym, XEvent *e, DMXBlockType block)
typedef int(* dmxCheckSpecialProcPtr )(DevicePtr, KeySym keySym)
typedef void(* dmxCollectEventsProcPtr )(DevicePtr, dmxMotionProcPtr, dmxEnqueueProcPtr, dmxCheckSpecialProcPtr, DMXBlockType)
typedef void(* dmxProcessInputProcPtr )(pointer)
typedef void(* dmxUpdateInfoProcPtr )(pointer, DMXUpdateType, WindowPtr)
typedef int(* dmxFunctionsProcPtr )(pointer, DMXFunctionType)
typedef void(* dmxKBCtrlProcPtr )(DevicePtr, KeybdCtrl *ctrl)
typedef void(* dmxMCtrlProcPtr )(DevicePtr, PtrCtrl *ctrl)
typedef void(* dmxKBBellProcPtr )(DevicePtr, int percent, int volume, int pitch, int duration)
typedef struct _DMXEventMap DMXEventMap
typedef struct _DMXLocalInputInfo DMXLocalInputInfoRec

Enumerations

enum  DMXFunctionType { DMX_FUNCTION_GRAB, +DMX_FUNCTION_TERMINATE, +DMX_FUNCTION_FINE + }
enum  DMXLocalInputType { DMX_LOCAL_HIGHLEVEL, +DMX_LOCAL_KEYBOARD, +DMX_LOCAL_MOUSE, +DMX_LOCAL_OTHER + }
enum  DMXLocalInputExtType { DMX_LOCAL_TYPE_LOCAL, +DMX_LOCAL_TYPE_CONSOLE, +DMX_LOCAL_TYPE_BACKEND, +DMX_LOCAL_TYPE_COMMON + }
enum  DMXMotionType { DMX_RELATIVE, +DMX_ABSOLUTE, +DMX_ABSOLUTE_CONFINED + }

Functions

void dmxLocalInitInput (DMXInputInfo *dmxInput)
DMXLocalInputInfoPtr dmxInputCopyLocal (DMXInputInfo *dmxInput, DMXLocalInputInfoPtr s)
void dmxChangePointerControl (DeviceIntPtr pDevice, PtrCtrl *ctrl)
void dmxKeyboardKbdCtrlProc (DeviceIntPtr pDevice, KeybdCtrl *ctrl)
void dmxKeyboardBellProc (int percent, DeviceIntPtr pDevice, pointer ctrl, int unknown)
int dmxInputExtensionErrorHandler (Display *dsp, char *name, char *reason)
int dmxInputDetach (DMXInputInfo *dmxInput)
void dmxInputDetachAll (DMXScreenInfo *dmxScreen)
int dmxInputDetachId (int id)
DMXInputInfodmxInputLocateId (int id)
int dmxInputAttachConsole (const char *name, int isCore, int *id)
int dmxInputAttachBackend (int physicalScreen, int isCore, int *id)

Variables

DMXLocalInputInfoPtr dmxLocalCorePointer
DMXLocalInputInfoPtr dmxLocalCoreKeyboard
+


Detailed Description

+

Interface for low-level input support.

+
See also:
dmxinputinit.c
+

Define Documentation

+ +
+
+ + + + +
#define DMX_LOCAL_DEFAULT_KEYBOARD   "kbd"
+
+
-struct  _DMXLocalInitInfo +
+
+ +
+
+ + + + +
#define DMX_LOCAL_DEFAULT_POINTER   "ps2"
+
+
-struct  _DMXLocalInputInfo +
+
+ +
+
+ + + + +
#define DMX_MAP_ENTRIES   16
+
+ +
+ +
+
+ + + + +
#define DMX_MAP_MASK   (DMX_MAP_ENTRIES - 1)
+
+ +
+ +
+
+ + + + +
#define DMX_MAX_AXES   32
+
+ +
+ +
+
+ + + + +
#define DMX_MAX_BUTTONS   256
+
+
-void dmxChangePointerControl (DeviceIntPtr pDevice, PtrCtrl *ctrl) +

Referenced by dmxCommonMouGetMap().

-void dmxKeyboardKbdCtrlProc (DeviceIntPtr pDevice, KeybdCtrl *ctrl) +
+
+ +
+
+ + + + +
#define DMX_MAX_VALUATORS   32
+
+
-void dmxKeyboardBellProc (int percent, DeviceIntPtr pDevice, pointer ctrl, int unknown) +
+
+ +
+
+ + + + +
#define DMX_MAX_XINPUT_EVENT_TYPES   100
+
+
-int dmxInputDetach (DMXInputInfo *dmxInput) +

Referenced by dmxCommonOthOn().

-void dmxInputDetachAll (DMXScreenInfo *dmxScreen) +
+
+ +
+
+ + + + +
#define DMX_MOTION_SIZE   256
+
+
-int dmxInputDetachId (int id) +

Referenced by dmxPointerGetMotionBufferSize(), dmxPointerGetMotionEvents(), and dmxPointerPutMotionEvent().

- -

Detailed Description

-Interface for low-level input support.
See also:
dmxinputinit.c
-

Typedef Documentation

-

- - - - -
- - -
typedef struct _DMXEventMap DMXEventMap -
-
- - - - - -
-   - - -

-Stores a mapping between the device id on the remote X server and the id on the DMX server

-

- - - - -
- + + +

Typedef Documentation

+ +
+
+
+ + + +
typedef int(* dmxCheckSpecialProcPtr)(DevicePtr, KeySym keySym)
+ +
+ +
+ + +
- - - - - -
-   - - -

-Stores information from low-level device that is used to initialize the device at the dix level.

-

- - - - + +
+ +
+ + +
+
+
- + +
+ +
+ + +
+
+
+ + + +
typedef pointer(* dmxCreatePrivateProcPtr)(DeviceIntPtr)
+ +
+ +
+ + +
+
+ + + + +
typedef void(* dmxDestroyPrivateProcPtr)(pointer)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxEnqueueProcPtr)(DevicePtr, int type, int detail, KeySym keySym, XEvent *e, DMXBlockType block)
+
+
+ +
+
+ +
+
+ + + + +
typedef struct _DMXEventMap DMXEventMap
+
+
+

Stores a mapping between the device id on the remote X server and the id on the DMX server

+ +
+
+ +
+
+ + + + +
typedef int(* dmxFunctionsProcPtr)(pointer, DMXFunctionType)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxGetInfoProcPtr)(DevicePtr, DMXLocalInitInfoPtr)
+
+
+ +
+
+ +
+
+ - +
typedef struct _DMXLocalInitInfo * DMXLocalInitInfoPtr + typedef void(* dmxInitProcPtr)(DevicePtr)
-
+ + + +
typedef void(* dmxKBBellProcPtr)(DevicePtr, int percent, int volume, int pitch, int duration)
+

+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxKBCtrlProcPtr)(DevicePtr, KeybdCtrl *ctrl)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxLateReInitProcPtr)(DevicePtr)
+
+
+ +
+
+ +
+
+ + + + +
typedef struct _DMXLocalInitInfo DMXLocalInitInfo
+
+
+

Stores information from low-level device that is used to initialize the device at the dix level.

+ +
+
+ +
+
+ + + + +
typedef struct _DMXLocalInitInfo * DMXLocalInitInfoPtr
+
+
+ +
+
+ +
+
+ + + + +
typedef struct _DMXLocalInputInfo DMXLocalInputInfoRec
+
+
+

This is the device-independent structure used by the low-level input routines. The contents are not exposed to top-level .c files (except dmxextensions.c).

+
See also:
dmxinput.h
+
+dmxextensions.c
+ +
+
+ +
+
+ + + + +
typedef void(* dmxMCtrlProcPtr)(DevicePtr, PtrCtrl *ctrl)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxMotionProcPtr)(DevicePtr, int *valuators, int firstAxis, int axesCount, DMXMotionType type, DMXBlockType block)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxOffProcPtr)(DevicePtr)
+
+
+ +
+
+ +
+
+ + + + +
typedef int(* dmxOnProcPtr)(DevicePtr)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxProcessInputProcPtr)(pointer)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxReInitProcPtr)(DevicePtr)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxUpdateInfoProcPtr)(pointer, DMXUpdateType, WindowPtr)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxUpdatePositionProcPtr)(pointer, int x, int y)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxVTPostSwitchProcPtr)(pointer)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxVTPreSwitchProcPtr)(pointer)
+
+
+ +
+
+ +
+
+ + + + +
typedef int(* dmxVTSwitchProcPtr)(pointer, int vt, dmxVTSwitchReturnProcPtr, pointer)
+
+
+ +
+
+ +
+
+ + + + +
typedef void(* dmxVTSwitchReturnProcPtr)(pointer)
+
+
+ +
+
+

Enumeration Type Documentation

+ +
+
+ + + + +
enum DMXFunctionType
+
+
+
Enumerator:
+ + +
DMX_FUNCTION_GRAB  +
DMX_FUNCTION_TERMINATE  +
DMX_FUNCTION_FINE  +
- - - - - + + + + + + +
+
+
-   - - -

-Stores information from low-level device that is used to initialize the device at the dix level.

+ + + +
enum DMXLocalInputExtType
+
+
+
Enumerator:
+ + + +
DMX_LOCAL_TYPE_LOCAL  +
DMX_LOCAL_TYPE_CONSOLE  +
DMX_LOCAL_TYPE_BACKEND  +
DMX_LOCAL_TYPE_COMMON  +
-

- - - - + +
+
Enumerator:
- + + + + + + +
+
+
- +
typedef struct _DMXLocalInputInfo DMXLocalInputInfoRec + enum DMXLocalInputType
-
+ + + +
DMX_LOCAL_HIGHLEVEL  +
DMX_LOCAL_KEYBOARD  +
DMX_LOCAL_MOUSE  +
DMX_LOCAL_OTHER  +
- - - - - + + + + + + +
+
+
-   - - -

-This is the device-independent structure used by the low-level input routines. The contents are not exposed to top-level .c files (except dmxextensions.c).

See also:
dmxinput.h

-dmxextensions.c

-
+ + + +
enum DMXMotionType
+

+
+
Enumerator:
+ + +
DMX_RELATIVE  +
DMX_ABSOLUTE  +
DMX_ABSOLUTE_CONFINED  +
-

Function Documentation

-

- - - - -
- + + + + + +

Function Documentation

+ +
+
+
- - - - + + + + + - - - + + - - + + -
void dmxChangePointerControl DeviceIntPtr  pDevice, void dmxChangePointerControl (DeviceIntPtr  pDevice,
PtrCtrl *  ctrlPtrCtrl *  ctrl 
)
-
- - - - - -
-   - - -

-Change the pointer control information for the pDevice. If the device sends core events, then also change the control information for all of the pointer devices that send core events.

-

- - - - -
- + +
+

Change the pointer control information for the pDevice. If the device sends core events, then also change the control information for all of the pointer devices that send core events.

+ +

References _dmxChangePointerControl(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.

+ +

Referenced by dmxDeviceOnOff().

+ +
+ + +
+
+
- - - - + + + + + + + + + + - - + + - - + + -
DMXLocalInputInfoPtr dmxInputCopyLocal DMXInputInfo dmxInput, int dmxInputAttachBackend (int  physicalScreen,
int  isCore,
DMXLocalInputInfoPtr  sint *  id 
)
-
- - - - - -
-   - - -

-Copy the local input information from s into a new devs slot in dmxInput.

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + + + + + + + + + + + + + + + + -
int dmxInputDetach DMXInputInfo dmxInput  ) int dmxInputAttachConsole (const char *  name,
int  isCore,
int *  id 
)
-
- - - - - -
-   - - -

-Detach an input

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + + + + + + + + + + +
void dmxInputDetachAll DMXScreenInfo dmxScreen  ) DMXLocalInputInfoPtr dmxInputCopyLocal (DMXInputInfo dmxInput,
DMXLocalInputInfoPtr  s 
)
+ + + + +
+
+ + + + + + + + +
int dmxInputDetach (DMXInputInfo dmxInput ) 
-
- - - - - -
-   - - -

-Search for input associated with dmxScreen, and detach.

-

- - - - -
- + + + + +
+
+
- - - - - - + + + + + + +
int dmxInputDetachId int  id  ) void dmxInputDetachAll (DMXScreenInfo dmxScreen ) 
+ +
+

Search for input associated with dmxScreen, and detach.

+ +

References dmxInputDetach(), dmxInputs, dmxNumInputs, _DMXScreenInfo::index, and _DMXInputInfo::scrnIdx.

+

Referenced by dmxDetachScreen().

+ +
+ + +
+
+ + + + + + + + +
int dmxInputDetachId (int  id ) 
-
- - - - - -
-   - - -

-Search for input associated with deviceId, and detach.

-

- - - - -
- + +
+

Search for input associated with deviceId, and detach.

+ +

References dmxInputDetach(), and dmxInputLocateId().

+ +

Referenced by dmxRemoveInput().

+ +
+ + +
+
+
- - - - + + + + + + + + + + - - + + + + + +
void dmxKeyboardBellProc int  percent, int dmxInputExtensionErrorHandler (Display *  dsp,
char *  name,
DeviceIntPtr  pDevice, char *  reason 
)
+ + + + +
+
+ + + + + + + - - +
DMXInputInfo* dmxInputLocateId (int  id )  pointer  ctrl,
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + - - + + - - + + -
void dmxKeyboardBellProc (int  percent,
DeviceIntPtr  pDevice,
pointer  ctrl,
int  unknownint  unknown 
)
-
- - - - - -
-   - - -

-Sound the bell on the device. If the device send core events, then sound the bell on all of the devices that send core events.

-

- - - - -
- + +
+

Sound the bell on the device. If the device send core events, then sound the bell on all of the devices that send core events.

+ +

References _dmxKeyboardBellProc(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.

+ +

Referenced by dmxKeyboardOn().

+ +
+ + +
+
+
- - - - + + + + + + + + + - - + + +
void dmxKeyboardKbdCtrlProc DeviceIntPtr  pDevice, void dmxKeyboardKbdCtrlProc (DeviceIntPtr  pDevice,
KeybdCtrl *  ctrl 
KeybdCtrl *  ctrl)
+ +
+

Change the keyboard control information for the pDevice. If the device sends core events, then also change the control information for all of the keyboard devices that send core events.

+ +

References _dmxKeyboardKbdCtrlProc(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.

+ +

Referenced by dmxKeyboardOn().

+ +
+ + +
+
+ + + + + + - - +
void dmxLocalInitInput (DMXInputInfo dmxInput ) 
+
+
+
+
+

Variable Documentation

+ +
- - - - - -
-   - - -

-Change the keyboard control information for the pDevice. If the device sends core events, then also change the control information for all of the keyboard devices that send core events.

+

+ +
+ + +

-- cgit v1.2.3