mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-07 12:08:18 +02:00
Cleanup.
This commit is contained in:
parent
a8394499d8
commit
c4ba32e150
1 changed files with 1 additions and 43 deletions
|
|
@ -99,56 +99,21 @@ static DMXLocalInputInfoRec DMXBackendKbd = {
|
||||||
NULL, dmxCommonKbdCtrl, dmxCommonKbdBell
|
NULL, dmxCommonKbdCtrl, dmxCommonKbdBell
|
||||||
};
|
};
|
||||||
|
|
||||||
#if 11 /*BP*/
|
|
||||||
void
|
void
|
||||||
DDXRingBell(int volume, int pitch, int duration)
|
DDXRingBell(int volume, int pitch, int duration)
|
||||||
{
|
{
|
||||||
/* NO-OP */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* taken from kdrive/src/kinput.c: */
|
|
||||||
static void
|
static void
|
||||||
dmxKbdCtrl (DeviceIntPtr pDevice, KeybdCtrl *ctrl)
|
dmxKbdCtrl (DeviceIntPtr pDevice, KeybdCtrl *ctrl)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
KdKeyboardInfo *ki;
|
|
||||||
|
|
||||||
for (ki = kdKeyboards; ki; ki = ki->next) {
|
|
||||||
if (ki->dixdev && ki->dixdev->id == pDevice->id)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ki || !ki->dixdev || ki->dixdev->id != pDevice->id || !ki->driver)
|
|
||||||
return;
|
|
||||||
|
|
||||||
KdSetLeds(ki, ctrl->leds);
|
|
||||||
ki->bellPitch = ctrl->bell_pitch;
|
|
||||||
ki->bellDuration = ctrl->bell_duration;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* taken from kdrive/src/kinput.c: */
|
|
||||||
static void
|
static void
|
||||||
dmxBell(int volume, DeviceIntPtr pDev, pointer arg, int something)
|
dmxBell(int volume, DeviceIntPtr pDev, pointer arg, int something)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
KeybdCtrl *ctrl = arg;
|
|
||||||
KdKeyboardInfo *ki = NULL;
|
|
||||||
|
|
||||||
for (ki = kdKeyboards; ki; ki = ki->next) {
|
|
||||||
if (ki->dixdev && ki->dixdev->id == pDev->id)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ki || !ki->dixdev || ki->dixdev->id != pDev->id || !ki->driver)
|
|
||||||
return;
|
|
||||||
|
|
||||||
KdRingBell(ki, volume, ctrl->bell_pitch, ctrl->bell_duration);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /*BP*/
|
|
||||||
|
|
||||||
static void _dmxChangePointerControl(DMXLocalInputInfoPtr dmxLocal,
|
static void _dmxChangePointerControl(DMXLocalInputInfoPtr dmxLocal,
|
||||||
PtrCtrl *ctrl)
|
PtrCtrl *ctrl)
|
||||||
{
|
{
|
||||||
|
|
@ -429,18 +394,11 @@ static void dmxProcessInputEvents(DMXInputInfo *dmxInput)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
#if 00 /*BP*/
|
|
||||||
miPointerUpdate();
|
|
||||||
#endif
|
|
||||||
if (dmxInput->detached)
|
if (dmxInput->detached)
|
||||||
return;
|
return;
|
||||||
for (i = 0; i < dmxInput->numDevs; i += dmxInput->devs[i]->binding)
|
for (i = 0; i < dmxInput->numDevs; i += dmxInput->devs[i]->binding)
|
||||||
if (dmxInput->devs[i]->process_input) {
|
if (dmxInput->devs[i]->process_input)
|
||||||
#if 11 /*BP*/
|
|
||||||
//miPointerUpdateSprite(dmxInput->devs[i]->pDevice);
|
|
||||||
#endif
|
|
||||||
dmxInput->devs[i]->process_input(dmxInput->devs[i]->private);
|
dmxInput->devs[i]->process_input(dmxInput->devs[i]->private);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dmxGrabButton(DMXInputInfo *dmxInput,
|
static void dmxGrabButton(DMXInputInfo *dmxInput,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue