Home
last modified time | relevance | path

Searched refs:dmxLocal (Results 1 – 10 of 10) sorted by relevance

/OK3568_Linux_fs/external/xserver/hw/dmx/input/
H A Ddmxmotion.c87 if (!dmxLocal->history) in dmxPointerGetMotionEvents()
89 for (i = dmxLocal->head; i != dmxLocal->tail;) { in dmxPointerGetMotionEvents()
90 if (dmxLocal->history[OFFSET(i, 0)] >= stop) in dmxPointerGetMotionEvents()
92 if (dmxLocal->history[OFFSET(i, 0)] >= start) { in dmxPointerGetMotionEvents()
94 c[OFFSET(count, j)] = dmxLocal->history[OFFSET(i, j)]; in dmxPointerGetMotionEvents()
115 if (!dmxLocal->history) { in dmxPointerPutMotionEvent()
116 dmxLocal->history = xallocarray(numAxes + 1, in dmxPointerPutMotionEvent()
117 sizeof(*dmxLocal->history) * DMX_MOTION_SIZE); in dmxPointerPutMotionEvent()
118 dmxLocal->head = 0; in dmxPointerPutMotionEvent()
119 dmxLocal->tail = 0; in dmxPointerPutMotionEvent()
[all …]
H A Ddmxmap.c63 dmxMapInsert(DMXLocalInputInfoPtr dmxLocal, int remoteEvent, int serverEvent) in dmxMapInsert() argument
69 if (dmxLocal->map[hash].remote == remoteEvent in dmxMapInsert()
70 && dmxLocal->map[hash].server == serverEvent) in dmxMapInsert()
73 if (dmxLocal->map[hash].remote) { in dmxMapInsert()
74 dmxLocal->mapOptimize = 0; in dmxMapInsert()
76 if (!dmxLocal->map[i].remote) { in dmxMapInsert()
77 dmxLocal->map[i].remote = remoteEvent; in dmxMapInsert()
78 dmxLocal->map[i].server = serverEvent; in dmxMapInsert()
87 dmxLocal->map[hash].remote = remoteEvent; in dmxMapInsert()
88 dmxLocal->map[hash].server = serverEvent; in dmxMapInsert()
[all …]
H A Ddmxinputinit.c219 _dmxChangePointerControl(DMXLocalInputInfoPtr dmxLocal, PtrCtrl * ctrl) in _dmxChangePointerControl() argument
221 if (!dmxLocal) in _dmxChangePointerControl()
223 dmxLocal->mctrl = *ctrl; in _dmxChangePointerControl()
224 if (dmxLocal->mCtrl) in _dmxChangePointerControl()
225 dmxLocal->mCtrl(&dmxLocal->pDevice->public, ctrl); in _dmxChangePointerControl()
237 if (dmxLocal->sendsCore) { /* Do for all core devices */ in dmxChangePointerControl()
249 _dmxChangePointerControl(dmxLocal, ctrl); in dmxChangePointerControl()
254 _dmxKeyboardKbdCtrlProc(DMXLocalInputInfoPtr dmxLocal, KeybdCtrl * ctrl) in _dmxKeyboardKbdCtrlProc() argument
256 dmxLocal->kctrl = *ctrl; in _dmxKeyboardKbdCtrlProc()
257 if (dmxLocal->kCtrl) { in _dmxKeyboardKbdCtrlProc()
[all …]
H A Ddmxevents.c100 dmxCheckFunctionKeys(DMXLocalInputInfoPtr dmxLocal, int type, KeySym keySym) in dmxCheckFunctionKeys() argument
102 DMXInputInfo *dmxInput = &dmxInputs[dmxLocal->inputIdx]; in dmxCheckFunctionKeys()
125 if (dmxLocal->sendsCore) in dmxCheckFunctionKeys()
127 else if (dmxLocal->pDevice->key) in dmxCheckFunctionKeys()
128 state = dmxLocal->pDevice->key->state; in dmxCheckFunctionKeys()
147 if (type == KeyPress && dmxLocal->sendsCore) in dmxCheckFunctionKeys()
179 DeviceIntPtr p = dmxLocal->pDevice; in enqueueMotion()
283 dmxExtMotion(DMXLocalInputInfoPtr dmxLocal, in dmxExtMotion() argument
287 DeviceIntPtr pDevice = dmxLocal->pDevice; in dmxExtMotion()
309 dmxLocal->lastX += thisX; in dmxExtMotion()
[all …]
H A Ddmxcommon.h45 DMXLocalInputInfoPtr dmxLocal; \
71 DMXInputInfo *dmxInput = &dmxInputs[priv->dmxLocal->inputIdx]
75 DMXLocalInputInfoPtr dmxLocal = pDev->devicePrivate
78 DMXInputInfo *dmxInput = &dmxInputs[priv->dmxLocal->inputIdx]
82 DMXInputInfo *dmxInput = &dmxInputs[dmxLocal->inputIdx]
85 DMXLocalInputInfoPtr dmxLocal = pDev->devicePrivate
89 DMXInputInfo *dmxInput = &dmxInputs[dmxLocal->inputIdx]
93 myPrivate *priv = dmxLocal->private
H A Ddmxmap.h38 extern void dmxMapInsert(DMXLocalInputInfoPtr dmxLocal,
40 extern void dmxMapClear(DMXLocalInputInfoPtr dmxLocal);
41 extern int dmxMapLookup(DMXLocalInputInfoPtr dmxLocal, int remoteEvent);
H A Ddmxconsole.c150 priv->dmxLocal = dmxLocal; in dmxConsoleCreatePrivate()
322 if (priv->dmxLocal->sendsCore) { in dmxConsoleUpdateFineCursor()
326 priv->globalX = priv->dmxLocal->lastX; in dmxConsoleUpdateFineCursor()
327 priv->globalY = priv->dmxLocal->lastY; in dmxConsoleUpdateFineCursor()
761 DMXInputInfo *dmxInput = &dmxInputs[dmxLocal->inputIdx]; in dmxConsoleInit()
772 if (dmxLocal->type == DMX_LOCAL_MOUSE) in dmxConsoleInit()
774 if (dmxLocal->type == DMX_LOCAL_KEYBOARD) in dmxConsoleInit()
1019 DMXLocalInputInfoPtr dmxLocal = dmxInput->devs[j]; in dmxDump() local
1020 myPrivate *priv = dmxLocal->private; in dmxDump()
1044 DMXLocalInputInfoPtr dmxLocal = dmxInput->devs[i]; in dmxConsoleCapture() local
[all …]
H A Ddmxcommon.c331 dmxMapInsert(dmxLocal, event_type[count], XI_##type); \ in dmxCommonOthOn()
339 if (!(priv->xi = XOpenDevice(priv->display, dmxLocal->deviceId))) { in dmxCommonOthOn()
341 dmxLocal->deviceName ? dmxLocal->deviceName : "(unknown)", in dmxCommonOthOn()
342 (int) dmxLocal->deviceId, dmxInput->name); in dmxCommonOthOn()
399 if (devices[i].id == (XID) dmxLocal->deviceId) { in dmxCommonOthGetInfo()
574 DMXInputInfo *dmxInput = &dmxInputs[dmxLocal->inputIdx]; in dmxCommonCopyPrivate()
578 if (dmxInput->devs[i] == dmxLocal && i) in dmxCommonCopyPrivate()
638 &priv->dmxLocal->kctrl); in dmxCommonSaveState()
H A Ddmxbackend.c110 priv->dmxLocal = dmxLocal; in dmxBackendCreatePrivate()
551 DMXInputInfo *dmxInput = &dmxInputs[dmxLocal->inputIdx]; in dmxBackendInitPrivate()
598 if (dmxLocal->type == DMX_LOCAL_MOUSE) in dmxBackendInit()
600 if (dmxLocal->type == DMX_LOCAL_KEYBOARD) in dmxBackendInit()
/OK3568_Linux_fs/external/xserver/hw/dmx/
H A Ddmxextension.c202 DMXLocalInputInfoPtr dmxLocal = dmxInput->devs[j]; in dmxGetInputAttributes() local
204 if (deviceId != dmxLocal->pDevice->id) in dmxGetInputAttributes()
206 attr->isCore = ! !dmxLocal->isCore; in dmxGetInputAttributes()
207 attr->sendsCore = ! !dmxLocal->sendsCore; in dmxGetInputAttributes()
212 switch (dmxLocal->extType) { in dmxGetInputAttributes()
219 attr->physicalId = dmxLocal->deviceId; in dmxGetInputAttributes()
226 attr->physicalId = dmxLocal->deviceId; in dmxGetInputAttributes()