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 @ File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxcommon.h File Reference

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)


Detailed Description

Interface to functions used by backend and console input devices.
See also:
dmxcommon.c

dmxbackend.c

dmxconsole.c


Function Documentation

pointer dmxCommonCopyPrivate DeviceIntPtr  pDevice  ) 
 

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.

void dmxCommonKbdBell DevicePtr  pDev,
int  percent,
int  volume,
int  pitch,
int  duration
 

Sound they keyboard bell.

void dmxCommonKbdCtrl DevicePtr  pDev,
KeybdCtrl *  ctrl
 

Update the keyboard control.

void dmxCommonKbdGetInfo DevicePtr  pDev,
DMXLocalInitInfoPtr  info
 

Fill in the XKEYBOARD parts of the info structure for the specified pDev.

void dmxCommonKbdGetMap DevicePtr  pDev,
KeySymsPtr  pKeySyms,
CARD8 *  pModMap
 

Get the keyboard mapping.

void dmxCommonKbdOff DevicePtr  pDev  ) 
 

Turn pDev off.

int dmxCommonKbdOn DevicePtr  pDev  ) 
 

Turn pDev on (i.e., take input from pDev).

void dmxCommonMouCtrl DevicePtr  pDev,
PtrCtrl *  ctrl
 

Update the mouse control.

void dmxCommonMouGetMap DevicePtr  pDev,
unsigned char *  map,
int *  nButtons
 

Obtain the mouse button mapping.

void dmxCommonMouOff DevicePtr  pDev  ) 
 

Turn pDev off.

int dmxCommonMouOn DevicePtr  pDev  ) 
 

Turn pDev on (i.e., take input from pDev).

void dmxCommonOthGetInfo DevicePtr  pDev,
DMXLocalInitInfoPtr  info
 

Fill the info structure with information needed to initialize pDev.

void dmxCommonOthOff DevicePtr  pDev  ) 
 

Turn pDev off.

int dmxCommonOthOn DevicePtr  pDev  ) 
 

Turn pDev on (i.e., take input from pDev).

void dmxCommonRestoreState pointer  private  ) 
 

This routine restores all the information saved by dmxCommonSaveState.

void dmxCommonSaveState pointer  private  ) 
 

This routine saves and resets some important state for the backend and console device drivers:

  • the modifier map is saved and set to 0 (so DMX controls the LEDs)
  • the key click, bell, led, and repeat masks are saved and set to the values that DMX claims to be using

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).

int dmxFindPointerScreen int  x,
int  y
 

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.


Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of xorg-server-1.4.2 @ text @@ 1.1.1.2 log @import xorg-server 1.9.2. important changes since 1.6.5 include: - built-in symbol visibility, default not export - fixes for various crashes - many fixes for XI2, EXA, dix, render, glx, xkb, EDID, randr, Xv, resource handling, Xext, vfb, xfree86 / vga and composite support. - fixes several memory leaks - many many documentation updates - record extension enabled - no longer looks for XF86Config files @ text @d9 8 a16 24

dmxcommon.h File Reference

d18 25 a42 113

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)

Detailed Description

Interface to functions used by backend and console input devices.

See also:
dmxcommon.c
dmxbackend.c
dmxconsole.c

Define Documentation

#define DMX_COMMON_OTHER
Value:
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
Value:
DMX_COMMON_XKB;                         \
    XDevice                 *xi
#define DMX_COMMON_XKB
Value:
DMX_COMMON_OTHER;                       \
    XkbDescPtr              xkb;            \
    XkbIndicatorRec         savedIndicators
#define DMX_KEYBOARD_EVENT_MASK   (KeyPressMask | KeyReleaseMask | KeymapStateMask)
d44 1 a44 12
#define DMX_POINTER_EVENT_MASK   (ButtonPressMask | ButtonReleaseMask | PointerMotionMask)
d46 1 a46 42
#define GETDMXINPUTFROMPDEV
Value:
GETDMXLOCALFROMPDEV;                                                \
    DMXInputInfo         *dmxInput = &dmxInputs[dmxLocal->inputIdx]
#define GETDMXINPUTFROMPDEVICE
Value:
GETDMXLOCALFROMPDEVICE;                                             \
    DMXInputInfo         *dmxInput = &dmxInputs[dmxLocal->inputIdx]
#define GETDMXINPUTFROMPRIV   DMXInputInfo *dmxInput = &dmxInputs[priv->dmxLocal->inputIdx]
d48 1 a48 12
#define GETDMXLOCALFROMPDEV   DMXLocalInputInfoPtr dmxLocal = pDev->devicePrivate
d50 18 a67 8
a68 18
#define GETDMXLOCALFROMPDEVICE
Value:
DevicePtr            pDev      = &pDevice->public;                  \
    DMXLocalInputInfoPtr dmxLocal  = pDev->devicePrivate
#define GETONLYPRIVFROMPRIVATE   myPrivate *priv = private
a69 9
d71 19 a89 11
Value:
GETDMXLOCALFROMPDEV;                                                \
    myPrivate            *priv     = dmxLocal->private
#define GETPRIVFROMPDEV
d91 4 a94 1 a95 13
#define GETPRIVFROMPRIVATE
Value:
GETONLYPRIVFROMPRIVATE;                                             \
    DMXInputInfo         *dmxInput = &dmxInputs[priv->dmxLocal->inputIdx]

Function Documentation

a96 5 d98 3 a101 13
pointer dmxCommonCopyPrivate ( DeviceIntPtr  pDevice  ) 

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.

d103 4 a106 4 a108 1 a109 5 d111 2 a112 2 a114 1 a115 5 d117 2 a118 2 d122 2 a123 2 d125 1 d127 19 a145 10

Sound they keyboard bell.

void dmxCommonKbdBell ( DevicePtr  pDev, int  percent,
int  volume, int  pitch,
int  duration )
d147 4 a150 4 a152 1 d154 3 a156 2 d160 2 a161 2 d163 1 d165 19 a183 12

Update the keyboard control.

References dmxCommonKbdSetCtrl(), and dmxCommonSaveState().

void dmxCommonKbdCtrl ( DevicePtr  pDev, KeybdCtrl *  ctrl )
d185 4 a188 4 a190 1 d192 3 a194 2 d198 2 a199 2 d201 1 d203 19 a221 14

Fill in the XKEYBOARD parts of the info structure for the specified pDev.

References dmxCommonRestoreState(), dmxCommonSaveState(), dmxLogInput(), _DMXLocalInitInfo::freenames, NAME, and _DMXLocalInitInfo::names.

Referenced by dmxBackendKbdGetInfo(), and dmxConsoleKbdGetInfo().

void dmxCommonKbdGetInfo ( DevicePtr  pDev, DMXLocalInitInfoPtr  info )
d223 4 a226 4 a228 1 d230 3 a232 2 a234 1 d236 3 a238 2 d242 2 a243 2 d245 1 d247 27 a273 3

Get the keyboard mapping.

d275 27 a301 15

Referenced by dmxBackendKbdGetInfo(), and dmxConsoleKbdGetInfo().

void dmxCommonKbdGetMap ( DevicePtr  pDev, KeySymsPtr  pKeySyms, CARD8 *  pModMap )
a302 6
void dmxCommonKbdOff ( DevicePtr  pDev  ) 

Turn pDev off.

References dmxCommonRestoreState().

a303 14
d305 19 a323 12

Turn pDev on (i.e., take input from pDev).

References dmxCommonSaveState().

int dmxCommonKbdOn ( DevicePtr  pDev  ) 
d325 4 a328 4 a330 1 d332 3 a334 2 d338 2 a339 2 d341 1 d343 19 a361 12

Update the mouse control.

References dmxCommonMouSetCtrl().

void dmxCommonMouCtrl ( DevicePtr  pDev, PtrCtrl *  ctrl )
d363 4 a366 4 a368 1 d370 3 a372 2 a374 1 d376 3 a378 2 d382 2 a383 2 d385 1 d387 27 a413 3

Obtain the mouse button mapping.

d415 27 a441 17

References DMX_MAX_BUTTONS.

Referenced by dmxBackendMouGetInfo(), and dmxConsoleMouGetInfo().

void dmxCommonMouGetMap ( DevicePtr  pDev, unsigned char *  map, int *  nButtons )
a442 4
void dmxCommonMouOff ( DevicePtr  pDev  ) 
d445 19 a463 12

Turn pDev on (i.e., take input from pDev).

References dmxCommonAddEnabledDevice(), dmxCommonXSelect(), dmxPropertyIterate(), dmxScreens, dmxShadowFB, and dmxSync().

int dmxCommonMouOn ( DevicePtr  pDev  ) 
d465 4 a468 4 a470 1 d472 3 a474 2 d478 2 a479 2 d481 1 d483 27 a509 3
void dmxCommonOthGetInfo ( DevicePtr  pDev, DMXLocalInitInfoPtr  info )
a567 4
void dmxCommonOthOff ( DevicePtr  pDev  ) 

Turn pDev off.

a568 14
d570 26 a595 19
int dmxCommonOthOn ( DevicePtr  pDev  ) 
a596 6
void dmxCommonRestoreState ( pointer  private  ) 
d599 22 a620 19

This routine saves and resets some important state for the backend and console device drivers:

  • the modifier map is saved and set to 0 (so DMX controls the LEDs)
  • the key click, bell, led, and repeat masks are saved and set to the values that DMX claims to be using

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).

References dmxCommonKbdSetCtrl(), DMXDBG0, dmxLogInput(), dmxScreens, dmxSync(), and dmxUseXKB.

Referenced by dmxBackendCollectEvents(), dmxCommonKbdCtrl(), dmxCommonKbdGetInfo(), dmxCommonKbdOn(), and dmxConsoleCollectEvents().

void dmxCommonSaveState ( pointer  private  ) 
d622 4 a625 4 a627 1 d629 3 a631 2 d635 2 a636 2 d638 1 d640 14 a653 9

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.

References dmxNumScreens.

@ 1.1.1.3 log @initial import of xorg-server 1.10.3. highlights include: - fixes xorg bugs 29969, 30367, 30527, 30267, 30260, 29046, 30260, 31548, 28672, 24887, 32115, 21457, 32436, 21827, 28414, 24703, 32803, 16318, 33449, 33324, 33929, 35082, 35209, 36146, 36119 - many additional NULL checks - adjustments related to input ABI 12 - *lots* of dead code removal - vga arbitrator fixes - GL fixes - EDID fixes - conversion to using asprintf() in many places - many fixes from valgrind, compiler warnings see these for more details: http://lists.freedesktop.org/archives/xorg-announce/2011-February/001612.html http://lists.freedesktop.org/archives/xorg-announce/2011-April/001646.html http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html http://lists.freedesktop.org/archives/xorg-announce/2011-July/001710.html @ text @d9 3 a11 2 d53 17 a69 17 d71 2 a72 2

Detailed Description

Interface to functions used by backend and console input devices.

d78 1 a78 1

Define Documentation

d116 1 a116 1 Value:
DMX_COMMON_XKB;                         \
d131 1
a131 1
Value:
DMX_COMMON_OTHER;                       \
d142 1
a142 1
          
a147 2

Referenced by dmxCommonKbdOff(), and dmxCommonKbdOn().

d155 1 a155 1 a160 2

Referenced by dmxCommonMouOff(), and dmxCommonMouOn().

d173 1 a173 1 Value:
GETDMXLOCALFROMPDEV;                                                \
a175 2

Referenced by dmxCheckSpecialKeys(), and dmxEnqueue().

d188 1 a188 1 Value:
GETDMXLOCALFROMPDEVICE;                                             \
a190 2

Referenced by dmxDeviceOnOff(), and dmxKeyboardOn().

d198 1 a198 1
a203 2

Referenced by dmxBackendCollectEvents(), dmxCloseConsole(), dmxCommonKbdGetInfo(), dmxCommonMouOff(), dmxCommonMouOn(), dmxCommonOthGetInfo(), dmxCommonOthOn(), dmxConsoleCollectEvents(), and dmxConsoleDraw().

d211 1 a211 1 a216 2

Referenced by dmxFixup(), dmxMotion(), and enqueueMotion().

a231 2

Referenced by dmxBackendCreatePrivate(), dmxChangePointerControl(), dmxCommonCopyPrivate(), dmxConsoleCreatePrivate(), dmxKeyboardBellProc(), dmxKeyboardKbdCtrlProc(), dmxPointerGetMotionEvents(), and dmxPointerPutMotionEvent().

d239 1 a239 1 a244 2

Referenced by dmxConsoleDrawWindows(), dmxConsoleFunctions(), dmxConsoleUpdateInfo(), and dmxConsoleUpdatePosition().

d257 1 a257 1 Value: d295 1 a295 1

References _DMXInputInfo::devs, dmxInputs, GETDMXLOCALFROMPDEVICE, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::private.

d306 2 a307 2 d312 2 a313 2 d318 2 a319 2 d324 2 a325 2 d330 2 a331 2 d336 1 a336 1 a342 2

References GETPRIVFROMPDEV.

d352 2 a353 2 d358 2 a359 2 d364 1 a364 1 d371 1 a371 1

References dmxCommonKbdSetCtrl(), dmxCommonSaveState(), and GETPRIVFROMPDEV.

d382 2 a383 2 d388 2 a389 2 d394 1 a394 1 d401 1 a401 1

References dmxCommonRestoreState(), dmxCommonSaveState(), dmxLogInput(), _DMXLocalInitInfo::freenames, GETDMXINPUTFROMPRIV, GETPRIVFROMPDEV, NAME, and _DMXLocalInitInfo::names.

d414 2 a415 2 d420 2 a421 2 d426 2 a427 2 d432 1 a432 1 a438 2

References GETPRIVFROMPDEV.

d450 3 a452 2 d460 1 a460 1

References DMX_KEYBOARD_EVENT_MASK, dmxCommonRestoreState(), and GETPRIVFROMPDEV.

d471 3 a473 2 d481 1 a481 1

References DMX_KEYBOARD_EVENT_MASK, dmxCommonSaveState(), and GETPRIVFROMPDEV.

d492 2 a493 2 d498 2 a499 2 d504 1 a504 1 d511 1 a511 1

References dmxCommonMouSetCtrl(), and GETPRIVFROMPDEV.

d522 2 a523 2 d528 2 a529 2 d534 2 a535 2 d540 1 a540 1 d547 1 a547 1

References DMX_MAX_BUTTONS, and GETPRIVFROMPDEV.

d560 3 a562 2 d570 1 a570 1

References DMX_POINTER_EVENT_MASK, dmxCommonRemoveEnabledDevice(), dmxCommonXSelect(), dmxPropertyIterate(), GETDMXINPUTFROMPRIV, and GETPRIVFROMPDEV.

d581 3 a583 2 d591 1 a591 1

References DMX_POINTER_EVENT_MASK, dmxCommonAddEnabledDevice(), dmxCommonXSelect(), dmxPropertyIterate(), dmxScreens, dmxShadowFB, dmxSync(), GETDMXINPUTFROMPRIV, and GETPRIVFROMPDEV.

d602 2 a603 2 d608 2 a609 2 d614 1 a614 1 d621 1 a621 1

References _DMXLocalInitInfo::buttonClass, display, dmxInputExtensionErrorHandler(), _DMXLocalInitInfo::focusClass, GETDMXINPUTFROMPRIV, GETPRIVFROMPDEV, _DMXLocalInitInfo::kbdFeedbackClass, _DMXLocalInitInfo::keyboard, _DMXLocalInitInfo::keyClass, _DMXLocalInitInfo::keySyms, _DMXLocalInitInfo::maxres, _DMXLocalInitInfo::maxval, _DMXLocalInitInfo::minres, _DMXLocalInitInfo::minval, _DMXLocalInitInfo::numAbsAxes, _DMXLocalInitInfo::numButtons, _DMXLocalInitInfo::numRelAxes, _DMXLocalInitInfo::proximityClass, _DMXLocalInitInfo::ptrFeedbackClass, _DMXLocalInitInfo::res, and _DMXLocalInitInfo::valuatorClass.

d632 3 a634 2 a641 2

References GETPRIVFROMPDEV.

d651 3 a653 2 d661 1 a661 1

References ADD, ChangeDeviceNotify, DeviceFocusIn, DeviceFocusOut, DeviceMappingNotify, DeviceMotionNotify, DeviceStateNotify, DMX_MAX_XINPUT_EVENT_TYPES, dmxLog(), dmxWarning, GETDMXINPUTFROMPRIV, GETPRIVFROMPDEV, ProximityIn, and ProximityOut.

d672 3 a674 2 d682 1 a682 1

References dmxCommonKbdSetCtrl(), DMXDBG0, dmxLog(), dmxLogInput(), dmxWarning, and GETPRIVFROMPRIVATE.

d695 3 a697 2 d710 1 a710 1

References dmxCommonKbdSetCtrl(), DMXDBG0, dmxLogInput(), dmxScreens, dmxSync(), dmxUseXKB, and GETPRIVFROMPRIVATE.

d723 2 a724 2 d729 2 a730 2 d735 1 a735 1 a746 4
int dmxFindPointerScreen ( int  x, int  y )
#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)
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)
#define DMX_KEYBOARD_EVENT_MASK   (KeyPressMask | KeyReleaseMask | KeymapStateMask)#define DMX_POINTER_EVENT_MASK   (ButtonPressMask | ButtonReleaseMask | PointerMotionMask)#define GETDMXINPUTFROMPRIV   DMXInputInfo *dmxInput = &dmxInputs[priv->dmxLocal->inputIdx]#define GETDMXLOCALFROMPDEV   DMXLocalInputInfoPtr dmxLocal = pDev->devicePrivate#define GETONLYPRIVFROMPRIVATE   myPrivate *priv = privateDeviceIntPtr  pDevice)DevicePtr  pDev, int  percent, int  volume, int  pitch, int  duration DevicePtr  pDev, KeybdCtrl *  ctrl DevicePtr  pDev, DMXLocalInitInfoPtr  info DevicePtr  pDev, KeySymsPtr  pKeySyms, CARD8 *  pModMap DevicePtr  pDev)DevicePtr  pDev)DevicePtr  pDev, PtrCtrl *  ctrl DevicePtr  pDev, unsigned char *  map, int *  nButtons DevicePtr  pDev)DevicePtr  pDev)DevicePtr  pDev, DMXLocalInitInfoPtr  info DevicePtr  pDev)DevicePtr  pDev)pointer  private)pointer  private)int  x, int  y