head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.18; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.50; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @
#include "dmx.h"#include "dmxinput.h"#include "dmxlog.h"Go to the source code of this file.
Data Structures | |
| struct | _DMXEventMap |
| struct | _DMXLocalInitInfo |
| struct | _DMXLocalInputInfo |
Typedefs | |
| typedef _DMXLocalInitInfo | DMXLocalInitInfo |
| typedef _DMXLocalInitInfo * | DMXLocalInitInfoPtr |
| typedef _DMXEventMap | DMXEventMap |
| typedef _DMXLocalInputInfo | DMXLocalInputInfoRec |
Functions | |
| 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 | dmxInputDetach (DMXInputInfo *dmxInput) |
| void | dmxInputDetachAll (DMXScreenInfo *dmxScreen) |
| int | dmxInputDetachId (int id) |
|
|
Stores a mapping between the device id on the remote X server and the id on the DMX server |
|
|
Stores information from low-level device that is used to initialize the device at the dix level. |
|
|
Stores information from low-level device that is used to initialize the device at the dix level. |
|
|
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).
|
|
||||||||||||
|
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. |
|
||||||||||||
|
Copy the local input information from s into a new devs slot in dmxInput. |
|
|
Detach an input |
|
|
Search for input associated with dmxScreen, and detach. |
|
|
Search for input associated with deviceId, and detach. |
|
||||||||||||||||||||
|
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. |
|
||||||||||||
|
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. |
#include "dmx.h"#include "dmxinput.h"#include "dmxlog.h"Go to the source code of this file.
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 _DMXLocalInitInfo * | DMXLocalInitInfoPtr |
| 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, _Xconst char *name, _Xconst char *reason) |
| int | dmxInputDetach (DMXInputInfo *dmxInput) |
| void | dmxInputDetachAll (DMXScreenInfo *dmxScreen) |
| int | dmxInputDetachId (int id) |
| DMXInputInfo * | dmxInputLocateId (int id) |
| int | dmxInputAttachConsole (const char *name, int isCore, int *id) |
| int | dmxInputAttachBackend (int physicalScreen, int isCore, int *id) |
Variables | |
| DMXLocalInputInfoPtr | dmxLocalCorePointer |
| DMXLocalInputInfoPtr | dmxLocalCoreKeyboard |
Interface for low-level input support.
| #define DMX_LOCAL_DEFAULT_KEYBOARD "kbd" |
| #define DMX_LOCAL_DEFAULT_POINTER "ps2" |
| #define DMX_MAP_ENTRIES 16 |
| #define DMX_MAP_MASK (DMX_MAP_ENTRIES - 1) |
| #define DMX_MAX_AXES 32 |
| #define DMX_MAX_BUTTONS 256 |
Referenced by dmxCommonMouGetMap().
d32 1 a32 12| #define DMX_MAX_VALUATORS 32 |
| #define DMX_MAX_XINPUT_EVENT_TYPES 100 |
| #define DMX_MOTION_SIZE 256 |
Referenced by dmxPointerGetMotionEvents(), and dmxPointerPutMotionEvent().
d41 1 a41 13| typedef int(* dmxCheckSpecialProcPtr)(DevicePtr, KeySym keySym) |
| typedef void(* dmxCollectEventsProcPtr)(DevicePtr, dmxMotionProcPtr, dmxEnqueueProcPtr, dmxCheckSpecialProcPtr, DMXBlockType) |
| typedef pointer(* dmxCreatePrivateProcPtr)(DeviceIntPtr) |
| typedef void(* dmxDestroyPrivateProcPtr)(pointer) |
| typedef void(* dmxEnqueueProcPtr)(DevicePtr, int type, int detail, KeySym keySym, XEvent *e, DMXBlockType block) | d61 19 a79 9
| typedef struct _DMXEventMap DMXEventMap | d83 19 a101 10
| typedef int(* dmxFunctionsProcPtr)(pointer, DMXFunctionType) | d105 19 a123 9
| typedef void(* dmxGetInfoProcPtr)(DevicePtr, DMXLocalInitInfoPtr) | d127 9 a135 2
| typedef void(* dmxInitProcPtr)(DevicePtr) | a154 10
| typedef void(* dmxKBBellProcPtr)(DevicePtr, int percent, int volume, int pitch, int duration) | a160 10
| typedef void(* dmxKBCtrlProcPtr)(DevicePtr, KeybdCtrl *ctrl) | a165 3
| typedef void(* dmxLateReInitProcPtr)(DevicePtr) |
| typedef struct _DMXLocalInitInfo DMXLocalInitInfo | a192 11
Stores information from low-level device that is used to initialize the device at the dix level.
| typedef struct _DMXLocalInitInfo * DMXLocalInitInfoPtr | a198 10
| typedef struct _DMXLocalInputInfo DMXLocalInputInfoRec | a203 7
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).
| typedef void(* dmxMCtrlProcPtr)(DevicePtr, PtrCtrl *ctrl) |
| typedef void(* dmxMotionProcPtr)(DevicePtr, int *valuators, int firstAxis, int axesCount, DMXMotionType type, DMXBlockType block) | a232 3
| typedef void(* dmxOffProcPtr)(DevicePtr) |
| typedef int(* dmxOnProcPtr)(DevicePtr) | a261 3
| typedef void(* dmxProcessInputProcPtr)(pointer) |
| typedef void(* dmxReInitProcPtr)(DevicePtr) | a290 3
| 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) |
| enum DMXFunctionType |
| enum DMXLocalInputExtType |
| enum DMXLocalInputType |
| enum DMXMotionType |
| void dmxChangePointerControl | ( | DeviceIntPtr | pDevice, | |||||
| PtrCtrl * | ctrl | a319 26 | ) |
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, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.
Referenced by dmxDeviceOnOff().
| int dmxInputAttachBackend | ( | int | physicalScreen, | |||
| d321 2 a322 2 | int | isCore, | a324 1a325 4 | int * | id | |
| ) |
| int dmxInputAttachConsole | ( | const char * | name, | a330 1a331 5 | int | isCore, | |
| d333 2 a334 2 | int * | id | d338 2 a339 2 | ) | a340 5 |
References _DMXInputInfo::detached, dmxConfigAddInput(), dmxInputAttachNew(), dmxInputAttachOld(), dmxInputs, dmxLogInput(), dmxNumInputs, _DMXInputInfo::freename, _DMXInputInfo::name, and _DMXInputInfo::scrnIdx.
a341 25Referenced by dmxAddInput().
| DMXLocalInputInfoPtr dmxInputCopyLocal | ( | DMXInputInfo * | dmxInput, | |||
| DMXLocalInputInfoPtr | s | |||||
| ) |
| int dmxInputDetach | ( | DMXInputInfo * | dmxInput | ) |
Detach an input
References _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputLogDevices(), dmxLogInput(), _DMXLocalInputInfo::isCore, _DMXInputInfo::numDevs, _DMXLocalInputInfo::pDevice, and _DMXLocalInputInfo::sendsCore.
| 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.
References dmxInputDetach(), and dmxInputLocateId().
Referenced by dmxRemoveInput().
| int dmxInputExtensionErrorHandler | ( | Display * | dsp, | _Xconst char * | name, | a368 1a369 4 | _Xconst char * | reason |
| ) |
Referenced by dmxCommonOthGetInfo(), and dmxInputScanForExtensions().
| DMXInputInfo* dmxInputLocateId | ( | int | id | ) |
References _DMXInputInfo::devs, dmxInputs, dmxNumInputs, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::pDevice.
Referenced by dmxInputDetachId().
| void dmxKeyboardBellProc | ( | int | percent, | |||
| DeviceIntPtr | pDevice, | a374 1d376 2 a377 2 | pointer | ctrl, | a378 69||
| int | 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.
References _dmxKeyboardBellProc(), _DMXInputInfo::detached, _DMXInputInfo::devs, dmxInputs, dmxNumInputs, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.
Referenced by dmxKeyboardOn().
| void dmxKeyboardKbdCtrlProc | ( | DeviceIntPtr | pDevice, | |
| 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, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::sendsCore.
Referenced by dmxKeyboardOn().
| void dmxLocalInitInput | ( | DMXInputInfo * | dmxInput | ) |
| DMXLocalInputInfoPtr dmxLocalCoreKeyboard |