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.14; 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.c File Reference

#include "dmxinputinit.h"
#include "dmxcommon.h"
#include "dmxconsole.h"
#include "dmxprop.h"
#include "dmxsync.h"
#include "dmxmap.h"
#include "inputstr.h"
#include "input.h"
#include "keysym.h"
#include "mipointer.h"
#include "scrnintstr.h"
#include <unistd.h>

Data Structures

struct  _myPrivate

Typedefs

typedef _myPrivate myPrivate

Functions

void dmxCommonKbdCtrl (DevicePtr pDev, KeybdCtrl *ctrl)
void dmxCommonMouCtrl (DevicePtr pDev, PtrCtrl *ctrl)
void dmxCommonKbdBell (DevicePtr pDev, int percent, int volume, int pitch, int duration)
void dmxCommonKbdGetMap (DevicePtr pDev, KeySymsPtr pKeySyms, CARD8 *pModMap)
void dmxCommonKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
int dmxCommonKbdOn (DevicePtr pDev)
void dmxCommonKbdOff (DevicePtr pDev)
int dmxCommonOthOn (DevicePtr pDev)
void dmxCommonOthOff (DevicePtr pDev)
void dmxCommonOthGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void dmxCommonMouGetMap (DevicePtr pDev, unsigned char *map, int *nButtons)
int dmxCommonMouOn (DevicePtr pDev)
void dmxCommonMouOff (DevicePtr pDev)
int dmxFindPointerScreen (int x, int y)
pointer dmxCommonCopyPrivate (DeviceIntPtr pDevice)
void dmxCommonSaveState (pointer private)
void dmxCommonRestoreState (pointer private)

Detailed Description

This file implements common routines used by the backend and console input devices.

Typedef Documentation

typedef struct _myPrivate myPrivate
 

Each device has a private area that is visible only from inside the driver code.


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 38 a46 108

dmxcommon.c File Reference

#include "dmxinputinit.h"
#include "dmxcommon.h"
#include "dmxconsole.h"
#include "dmxprop.h"
#include "dmxsync.h"
#include "dmxmap.h"
#include "inputstr.h"
#include "input.h"
#include <X11/keysym.h>
#include "mipointer.h"
#include "scrnintstr.h"
#include <unistd.h>

Data Structures

struct  _myPrivate

Defines

#define DMX_STATE_DEBUG   0
#define DMXDBG0(f)
#define NAME(x)   priv->xkb->names->x ? XGetAtomName(priv->display,priv->xkb->names->x) : NULL
#define ADD(type)

Typedefs

typedef struct _myPrivate myPrivate

Functions

static void dmxCommonKbdSetAR (Display *display, unsigned char *old, unsigned char *new)
static void dmxCommonKbdSetLeds (Display *display, unsigned long new)
static void dmxCommonKbdSetCtrl (Display *display, KeybdCtrl *old, KeybdCtrl *new)
static void dmxCommonMouSetCtrl (Display *display, PtrCtrl *old, PtrCtrl *new)
void dmxCommonKbdCtrl (DevicePtr pDev, KeybdCtrl *ctrl)
void dmxCommonMouCtrl (DevicePtr pDev, PtrCtrl *ctrl)
void dmxCommonKbdBell (DevicePtr pDev, int percent, int volume, int pitch, int duration)
void dmxCommonKbdGetMap (DevicePtr pDev, KeySymsPtr pKeySyms, CARD8 *pModMap)
void dmxCommonKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
int dmxCommonKbdOn (DevicePtr pDev)
void dmxCommonKbdOff (DevicePtr pDev)
int dmxCommonOthOn (DevicePtr pDev)
void dmxCommonOthOff (DevicePtr pDev)
void dmxCommonOthGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void dmxCommonMouGetMap (DevicePtr pDev, unsigned char *map, int *nButtons)
static void * dmxCommonXSelect (DMXScreenInfo *dmxScreen, void *closure)
static void * dmxCommonAddEnabledDevice (DMXScreenInfo *dmxScreen, void *closure)
static void * dmxCommonRemoveEnabledDevice (DMXScreenInfo *dmxScreen, void *closure)
int dmxCommonMouOn (DevicePtr pDev)
void dmxCommonMouOff (DevicePtr pDev)
int dmxFindPointerScreen (int x, int y)
pointer dmxCommonCopyPrivate (DeviceIntPtr pDevice)
void dmxCommonSaveState (pointer private)
void dmxCommonRestoreState (pointer private)

Detailed Description

This file implements common routines used by the backend and console input devices.


Define Documentation

#define ADD (   type  ) 
Value:
if (count < DMX_MAX_XINPUT_EVENT_TYPES) {                                \
        type(priv->xi, event_type[count], event_list[count]);                \
        if (event_type[count]) {                                             \
            dmxMapInsert(dmxLocal, event_type[count], XI_##type);            \
            ++count;                                                         \
        }                                                                    \
    } else {                                                                 \
        dmxLog(dmxWarning, "More than %d event types for %s\n",              \
               DMX_MAX_XINPUT_EVENT_TYPES, dmxInput->name);                  \
    }

Referenced by dmxCommonOthOn().

d48 1 a48 12
#define DMX_STATE_DEBUG   0
d50 1 a50 17
#define DMXDBG0 (   f  ) 
d52 1 a52 1

Referenced by dmxCommonRestoreState(), and dmxCommonSaveState().

d54 1 a54 17
#define NAME (   x  )     priv->xkb->names->x ? XGetAtomName(priv->display,priv->xkb->names->x) : NULL
d56 1 a56 1

Referenced by dmxCommonKbdGetInfo().

d58 1 a58 14

Typedef Documentation

typedef struct _myPrivate myPrivate

Each device has a private area that is visible only from inside the driver code.

d60 1 a60 27

Function Documentation

static void* dmxCommonAddEnabledDevice ( DMXScreenInfo dmxScreen,
void *  closure 
) [static]
d62 1 a62 1

References _DMXScreenInfo::beDisplay.

d64 1 a64 1

Referenced by dmxCommonMouOn().

d66 8 a73 6
d75 29 a103 6 d105 1 d107 19 a125 12

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.

pointer dmxCommonCopyPrivate ( DeviceIntPtr  pDevice  ) 
d127 4 a130 4 a132 1 a133 5 d135 2 a136 2 a138 1 a139 5 d141 2 a142 2 a145 22
void dmxCommonKbdBell ( DevicePtr  pDev, int  percent,
int  volume, int  pitch,
int  duration )

Sound they keyboard bell.

d147 2 a148 2 a151 24
void dmxCommonKbdCtrl ( DevicePtr  pDev,
KeybdCtrl *  ctrl )

Update the keyboard control.

References dmxCommonKbdSetCtrl(), and dmxCommonSaveState().

d153 2 a154 2 d158 2 a159 2 d161 1 d163 19 a181 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 )
d183 4 a186 4 a188 1 a189 5 d191 2 a192 2 d196 2 a197 2 a198 4
void dmxCommonKbdGetMap ( DevicePtr  pDev, KeySymsPtr  pKeySyms,
CARD8 *  pModMap )

Get the keyboard mapping.

a199 16

Referenced by dmxBackendKbdGetInfo(), and dmxConsoleKbdGetInfo().

d201 19 a219 12

Turn pDev off.

References dmxCommonRestoreState().

void dmxCommonKbdOff ( DevicePtr  pDev  ) 
d221 4 a224 6 a225 13
int dmxCommonKbdOn ( DevicePtr  pDev  ) 

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

References dmxCommonSaveState().

a226 7 a227 5 d229 2 a230 2 d234 2 a235 2 d237 1 d239 19 a257 11

Referenced by dmxCommonKbdSetCtrl().

static void dmxCommonKbdSetAR ( Display *  display,
unsigned char *  old,
unsigned char *  new ) [static]
d259 4 a262 4 a264 1 d266 3 a268 2 a270 1 d272 3 a274 2 d278 2 a279 2 d281 1 d283 27 a309 2
d311 28 a338 1

References dmxCommonKbdSetAR(), and dmxCommonKbdSetLeds().

d340 20 a359 8

Referenced by dmxCommonKbdCtrl(), dmxCommonRestoreState(), and dmxCommonSaveState().

static void dmxCommonKbdSetCtrl ( Display *  display, KeybdCtrl *  old, KeybdCtrl *  new ) [static]
d361 4 a364 4 a366 1 d368 3 a370 2 d374 2 a375 2 d377 1 d379 19 a397 11

Referenced by dmxCommonKbdSetCtrl().

static void dmxCommonKbdSetLeds ( Display *  display, unsigned long  new ) [static]
d399 4 a402 4 a404 1 a405 4 d407 2 a408 2 a409 13
void dmxCommonMouCtrl ( DevicePtr  pDev, PtrCtrl *  ctrl 
)

Update the mouse control.

References dmxCommonMouSetCtrl().

a410 7 a411 5 d413 2 a414 2 d418 2 a419 2 d421 1 d423 27 a449 3

Obtain the mouse button mapping.

d451 27 a477 17

References DMX_MAX_BUTTONS.

Referenced by dmxBackendMouGetInfo(), and dmxConsoleMouGetInfo().

void dmxCommonMouGetMap ( DevicePtr  pDev,
unsigned char *  map,
int *  nButtons )
a478 4
void dmxCommonMouOff ( DevicePtr  pDev  ) 
d481 19 a499 12

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

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

int dmxCommonMouOn ( DevicePtr  pDev  ) 
d501 4 a504 4 a506 1 a507 5 d509 2 a510 2 d514 2 a515 2 d517 1 d519 27 a545 2
d547 27 a573 13

Referenced by dmxCommonMouCtrl().

static void dmxCommonMouSetCtrl ( Display *  display, PtrCtrl *  old,
PtrCtrl *  new ) [static]
a574 15
void dmxCommonOthGetInfo ( DevicePtr  pDev,
DMXLocalInitInfoPtr  info 
)
d577 26 a602 17

Turn pDev off.

void dmxCommonOthOff ( DevicePtr  pDev  ) 
a603 6
int dmxCommonOthOn ( DevicePtr  pDev  ) 
d606 26 a631 20

References _DMXScreenInfo::beDisplay.

Referenced by dmxCommonMouOff().

static void* dmxCommonRemoveEnabledDevice ( DMXScreenInfo dmxScreen,
void *  closure 
) [static]
a632 4
void dmxCommonRestoreState ( pointer  private  ) 
d635 22 a656 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  ) 
d658 4 a661 4 a663 1 d665 3 a667 2 d671 2 a672 2 a673 5
static void* dmxCommonXSelect ( DMXScreenInfo dmxScreen, void *  closure ) [static]
d676 14 a689 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
int dmxFindPointerScreen ( int  x,
int  y 
)
d50 1 a50 1 d53 4 a56 4 d59 1 a59 1 d62 24 a85 24 d87 3 a89 3

Detailed Description

This file implements common routines used by the backend and console input devices.


Define Documentation

d97 3 a99 2 d125 1 a125 1 d140 3 a142 2 d160 4 a163 3 d196 2 a197 2 d202 2 a203 2 d208 1 a208 1 d227 3 a229 2 d237 1 a237 1

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

d248 2 a249 2 d254 2 a255 2 d260 2 a261 2 d266 2 a267 2 d272 2 a273 2 d278 1 a278 1 a284 2

References GETPRIVFROMPDEV.

d294 2 a295 2 d300 2 a301 2 d306 1 a306 1 d313 1 a313 1

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

d324 2 a325 2 d330 2 a331 2 d336 1 a336 1 d343 1 a343 1

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

d356 2 a357 2 d362 2 a363 2 d368 2 a369 2 d374 1 a374 1 a380 2

References GETPRIVFROMPDEV.

d392 3 a394 2 d402 1 a402 1

References DMX_KEYBOARD_EVENT_MASK, dmxCommonRestoreState(), and GETPRIVFROMPDEV.

d413 3 a415 2 d423 1 a423 1

References DMX_KEYBOARD_EVENT_MASK, dmxCommonSaveState(), and GETPRIVFROMPDEV.

d434 2 a435 2 d440 2 a441 2 d446 2 a447 2 d452 1 a452 1 d469 2 a470 2 d475 2 a476 2 d481 2 a482 2 d487 1 a487 1 d506 2 a507 2 d512 2 a513 2 d518 1 a518 1 d535 2 a536 2 d541 2 a542 2 d547 1 a547 1 d554 1 a554 1

References dmxCommonMouSetCtrl(), and GETPRIVFROMPDEV.

d565 2 a566 2 d571 2 a572 2 d577 2 a578 2 d583 1 a583 1 d590 1 a590 1

References DMX_MAX_BUTTONS, and GETPRIVFROMPDEV.

d603 3 a605 2 d613 1 a613 1

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

d624 3 a626 2 d634 1 a634 1

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

d645 2 a646 2 d651 2 a652 2 d657 2 a658 2 d663 1 a663 1 d680 2 a681 2 d686 2 a687 2 d692 1 a692 1 d699 1 a699 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.

d710 3 a712 2 a719 2

References GETPRIVFROMPDEV.

d729 3 a731 2 d739 1 a739 1

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

d750 2 a751 2 d756 2 a757 2 d762 1 a762 1 d781 3 a783 2 d791 1 a791 1

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

d804 3 a806 2 d819 1 a819 1

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

d832 2 a833 2 d838 2 a839 2 d844 1 a844 1 d863 2 a864 2 d869 2 a870 2 d875 1 a875 1 a886 4
struct  _myPrivate
#define DMX_STATE_DEBUG   0
#define DMXDBG0(f)
#define NAME(x)   priv->xkb->names->x ? XGetAtomName(priv->display,priv->xkb->names->x) : NULL
#define ADD(type)
typedef struct _myPrivate myPrivate
static void dmxCommonKbdSetAR (Display *display, unsigned char *old, unsigned char *new)
static void dmxCommonKbdSetLeds (Display *display, unsigned long new)
static void dmxCommonKbdSetCtrl (Display *display, KeybdCtrl *old, KeybdCtrl *new)
static void dmxCommonMouSetCtrl (Display *display, PtrCtrl *old, PtrCtrl *new)
void dmxCommonKbdCtrl (DevicePtr pDev, KeybdCtrl *ctrl)
void dmxCommonMouCtrl (DevicePtr pDev, PtrCtrl *ctrl)
void dmxCommonKbdBell (DevicePtr pDev, int percent, int volume, int pitch, int duration)
void dmxCommonKbdGetMap (DevicePtr pDev, KeySymsPtr pKeySyms, CARD8 *pModMap)
void dmxCommonKbdGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
int dmxCommonKbdOn (DevicePtr pDev)
void dmxCommonKbdOff (DevicePtr pDev)
int dmxCommonOthOn (DevicePtr pDev)
void dmxCommonOthOff (DevicePtr pDev)
void dmxCommonOthGetInfo (DevicePtr pDev, DMXLocalInitInfoPtr info)
void dmxCommonMouGetMap (DevicePtr pDev, unsigned char *map, int *nButtons)
static void * dmxCommonXSelect (DMXScreenInfo *dmxScreen, void *closure)
static void * dmxCommonAddEnabledDevice (DMXScreenInfo *dmxScreen, void *closure)
static void * dmxCommonRemoveEnabledDevice (DMXScreenInfo *dmxScreen, void *closure)
int dmxCommonMouOn (DevicePtr pDev)
void dmxCommonMouOff (DevicePtr pDev)
int dmxFindPointerScreen (int x, int y)
pointer dmxCommonCopyPrivate (DeviceIntPtr pDevice)
void dmxCommonSaveState (pointer private)
void dmxCommonRestoreState (pointer private)
  type)#define DMX_STATE_DEBUG   0  f)  x)    priv->xkb->names->x ? XGetAtomName(priv->display,priv->xkb->names->x) : NULLDMXScreenInfo dmxScreen, void *  closure  [static]DeviceIntPtr  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)Display *  display, unsigned char *  old, unsigned char *  new  [static]Display *  display, KeybdCtrl *  old, KeybdCtrl *  new  [static]Display *  display, unsigned long  new  [static]DevicePtr  pDev, PtrCtrl *  ctrl DevicePtr  pDev, unsigned char *  map, int *  nButtons DevicePtr  pDev)DevicePtr  pDev)Display *  display, PtrCtrl *  old, PtrCtrl *  new  [static]DevicePtr  pDev, DMXLocalInitInfoPtr  info DevicePtr  pDev)DevicePtr  pDev)DMXScreenInfo dmxScreen, void *  closure  [static]pointer  private)pointer  private)DMXScreenInfo dmxScreen, void *  closure  [static]int  x, int  y