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.27; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.27; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.15; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.49; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @
Go to the source code of this file.
Functions | |
| void | dmxCommonKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) |
| void | dmxCommonKbdGetMap (DevicePtr pDev, KeySymsPtr pKeySyms, CARD8 *pModMap) |
| void | dmxCommonKbdCtrl (DevicePtr pDev, KeybdCtrl *ctrl) |
| void | dmxCommonKbdBell (DevicePtr pDev, int percent, int volume, int pitch, int duration) |
| int | dmxCommonKbdOn (DevicePtr pDev) |
| void | dmxCommonKbdOff (DevicePtr pDev) |
| void | dmxCommonMouGetMap (DevicePtr pDev, unsigned char *map, int *nButtons) |
| void | dmxCommonMouCtrl (DevicePtr pDev, PtrCtrl *ctrl) |
| int | dmxCommonMouOn (DevicePtr pDev) |
| void | dmxCommonMouOff (DevicePtr pDev) |
| int | dmxFindPointerScreen (int x, int y) |
| int | dmxCommonOthOn (DevicePtr pDev) |
| void | dmxCommonOthOff (DevicePtr pDev) |
| void | dmxCommonOthGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) |
| pointer | dmxCommonCopyPrivate (DeviceIntPtr pDevice) |
| void | dmxCommonSaveState (pointer private) |
| void | dmxCommonRestoreState (pointer private) |
|
|
Returns a pointer to the private area for the device that comes just prior to pDevice in the current dmxInput device list. This is used as the private area for the current device in some situations (e.g., when a keyboard and mouse form a pair that should share the same private area). If the requested private area cannot be located, then NULL is returned. |
|
||||||||||||||||||||||||
|
Sound they keyboard bell. |
|
||||||||||||
|
Update the keyboard control. |
|
||||||||||||
|
Fill in the XKEYBOARD parts of the info structure for the specified pDev. |
|
||||||||||||||||
|
Get the keyboard mapping. |
|
|
Turn pDev off. |
|
|
Turn pDev on (i.e., take input from pDev). |
|
||||||||||||
|
Update the mouse control. |
|
||||||||||||||||
|
Obtain the mouse button mapping. |
|
|
Turn pDev off. |
|
|
Turn pDev on (i.e., take input from pDev). |
|
||||||||||||
|
Fill the info structure with information needed to initialize pDev. |
|
|
Turn pDev off. |
|
|
Turn pDev on (i.e., take input from pDev). |
|
|
This routine restores all the information saved by dmxCommonSaveState. |
|
|
This routine saves and resets some important state for the backend and console device drivers:
This routine and dmxCommonRestoreState are used when the pointer enters and leaves the console window, or when the backend window is active or not active (for a full-screen window, this only happens at server startup and server shutdown). |
|
||||||||||||
|
Given the global coordinates x and y, determine the screen with the lowest number on which those coordinates lie. If they are not on any screen, return -1. The number returned is an index into #dmxScreenInfo and is between -1 and dmxNumScreens - 1, inclusive. |
Go to the source code of this file.
Defines | |
| #define | DMX_COMMON_OTHER |
| #define | DMX_COMMON_XKB |
| #define | DMX_COMMON_PRIVATE |
| #define | GETONLYPRIVFROMPRIVATE myPrivate *priv = private |
| #define | GETPRIVFROMPRIVATE |
| #define | GETDMXLOCALFROMPDEVICE |
| #define | GETDMXINPUTFROMPRIV DMXInputInfo *dmxInput = &dmxInputs[priv->dmxLocal->inputIdx] |
| #define | GETDMXINPUTFROMPDEVICE |
| #define | GETDMXLOCALFROMPDEV DMXLocalInputInfoPtr dmxLocal = pDev->devicePrivate |
| #define | GETDMXINPUTFROMPDEV |
| #define | GETPRIVFROMPDEV |
| #define | DMX_KEYBOARD_EVENT_MASK (KeyPressMask | KeyReleaseMask | KeymapStateMask) |
| #define | DMX_POINTER_EVENT_MASK (ButtonPressMask | ButtonReleaseMask | PointerMotionMask) |
Functions | |
| void | dmxCommonKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) |
| void | dmxCommonKbdGetMap (DevicePtr pDev, KeySymsPtr pKeySyms, CARD8 *pModMap) |
| void | dmxCommonKbdCtrl (DevicePtr pDev, KeybdCtrl *ctrl) |
| void | dmxCommonKbdBell (DevicePtr pDev, int percent, int volume, int pitch, int duration) |
| int | dmxCommonKbdOn (DevicePtr pDev) |
| void | dmxCommonKbdOff (DevicePtr pDev) |
| void | dmxCommonMouGetMap (DevicePtr pDev, unsigned char *map, int *nButtons) |
| void | dmxCommonMouCtrl (DevicePtr pDev, PtrCtrl *ctrl) |
| int | dmxCommonMouOn (DevicePtr pDev) |
| void | dmxCommonMouOff (DevicePtr pDev) |
| int | dmxFindPointerScreen (int x, int y) |
| int | dmxCommonOthOn (DevicePtr pDev) |
| void | dmxCommonOthOff (DevicePtr pDev) |
| void | dmxCommonOthGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info) |
| pointer | dmxCommonCopyPrivate (DeviceIntPtr pDevice) |
| void | dmxCommonSaveState (pointer private) |
| void | dmxCommonRestoreState (pointer private) |
Interface to functions used by backend and console input devices.
| #define DMX_COMMON_OTHER |
Display *display; \ Window window; \ DMXScreenInfo *be; \ DMXLocalInputInfoPtr dmxLocal; \ int initPointerX; \ int initPointerY; \ long eventMask; \ KeybdCtrl kctrl; \ PtrCtrl mctrl; \ int kctrlset; \ int mctrlset; \ KeybdCtrl savedKctrl; \ XModifierKeymap *savedModMap; \ int stateSaved
| #define DMX_COMMON_PRIVATE |
DMX_COMMON_XKB; \
XDevice *xi
| #define DMX_COMMON_XKB |
DMX_COMMON_OTHER; \
XkbDescPtr xkb; \
XkbIndicatorRec savedIndicators
| #define DMX_KEYBOARD_EVENT_MASK (KeyPressMask | KeyReleaseMask | KeymapStateMask) |
| #define DMX_POINTER_EVENT_MASK (ButtonPressMask | ButtonReleaseMask | PointerMotionMask) |
| #define GETDMXINPUTFROMPDEV |
GETDMXLOCALFROMPDEV; \
DMXInputInfo *dmxInput = &dmxInputs[dmxLocal->inputIdx]
| #define GETDMXINPUTFROMPDEVICE |
GETDMXLOCALFROMPDEVICE; \
DMXInputInfo *dmxInput = &dmxInputs[dmxLocal->inputIdx]
| #define GETDMXINPUTFROMPRIV DMXInputInfo *dmxInput = &dmxInputs[priv->dmxLocal->inputIdx] |
| #define GETDMXLOCALFROMPDEV DMXLocalInputInfoPtr dmxLocal = pDev->devicePrivate |
| #define GETDMXLOCALFROMPDEVICE | a68 18
DevicePtr pDev = &pDevice->public; \
DMXLocalInputInfoPtr dmxLocal = pDev->devicePrivate
| #define GETONLYPRIVFROMPRIVATE myPrivate *priv = private |
| #define GETPRIVFROMPDEV |
| #define GETPRIVFROMPRIVATE | a95 13
GETONLYPRIVFROMPRIVATE; \
DMXInputInfo *dmxInput = &dmxInputs[priv->dmxLocal->inputIdx]
| pointer dmxCommonCopyPrivate | ( | DeviceIntPtr | pDevice | ) | d98 3 a101 13
Returns a pointer to the private area for the device that comes just prior to pDevice in the current dmxInput device list. This is used as the private area for the current device in some situations (e.g., when a keyboard and mouse form a pair that should share the same private area). If the requested private area cannot be located, then NULL is returned.
References _DMXInputInfo::devs, dmxInputs, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::private.
| void dmxCommonKbdBell | ( | DevicePtr | pDev, | a108 1a109 5 | int | percent, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| d111 2 a112 2 | int | volume, | a114 1a115 5 | int | pitch, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| d117 2 a118 2 | int | duration | d122 2 a123 2 | ) | d125 1 d127 19 a145 10 |
| void dmxCommonKbdCtrl | ( | DevicePtr | pDev, | a152 1d154 3 a156 2 | KeybdCtrl * | ctrl | d160 2 a161 2 | ) | d163 1 d165 19 a183 12 |
| void dmxCommonKbdGetInfo | ( | DevicePtr | pDev, | a190 1d192 3 a194 2 | DMXLocalInitInfoPtr | info | d198 2 a199 2 | ) | d201 1 d203 19 a221 14 |
| void dmxCommonKbdGetMap | ( | DevicePtr | pDev, | a228 1d230 3 a232 2 | KeySymsPtr | pKeySyms, | a234 1d236 3 a238 2 | CARD8 * | pModMap | d242 2 a243 2 | ) | d245 1 d247 27 a273 3 |
| void dmxCommonKbdOff | ( | DevicePtr | pDev | ) | a302 6 |
Turn pDev off.
References dmxCommonRestoreState().
a303 14| int dmxCommonKbdOn | ( | DevicePtr | pDev | ) |
| void dmxCommonMouCtrl | ( | DevicePtr | pDev, | a330 1d332 3 a334 2 | PtrCtrl * | ctrl | d338 2 a339 2 | ) | d341 1 d343 19 a361 12 |
| void dmxCommonMouGetMap | ( | DevicePtr | pDev, | a368 1d370 3 a372 2 | unsigned char * | map, | a374 1d376 3 a378 2 | int * | nButtons | d382 2 a383 2 | ) | d385 1 d387 27 a413 3 |
| void dmxCommonMouOff | ( | DevicePtr | pDev | ) | a442 4 |
Turn pDev off.
a443 16References dmxCommonRemoveEnabledDevice(), dmxCommonXSelect(), and dmxPropertyIterate().
| int dmxCommonMouOn | ( | DevicePtr | pDev | ) |
| void dmxCommonOthGetInfo | ( | DevicePtr | pDev, | a470 1d472 3 a474 2 | DMXLocalInitInfoPtr | info | d478 2 a479 2 | ) | d481 1 d483 27 a509 3 |
| void dmxCommonOthOff | ( | DevicePtr | pDev | ) | a567 4 |
Turn pDev off.
a568 14| int dmxCommonOthOn | ( | DevicePtr | pDev | ) |
| void dmxCommonRestoreState | ( | pointer | private | ) | a596 6 |
This routine restores all the information saved by dmxCommonSaveState.
References dmxCommonKbdSetCtrl(), DMXDBG0, dmxLog(), dmxLogInput(), and dmxWarning.
a597 16Referenced by dmxBackendCollectEvents(), dmxCloseConsole(), dmxCommonKbdGetInfo(), dmxCommonKbdOff(), and dmxConsoleCollectEvents().
| void dmxCommonSaveState | ( | pointer | private | ) |
| int dmxFindPointerScreen | ( | int | x, | a627 1d629 3 a631 2 | int | y | d635 2 a636 2 | ) | d638 1 d640 14 a653 9 |