mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 08:00:15 +01: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
|
||||
};
|
||||
|
||||
#if 11 /*BP*/
|
||||
void
|
||||
DDXRingBell(int volume, int pitch, int duration)
|
||||
{
|
||||
/* NO-OP */
|
||||
}
|
||||
|
||||
/* taken from kdrive/src/kinput.c: */
|
||||
static void
|
||||
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
|
||||
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,
|
||||
PtrCtrl *ctrl)
|
||||
{
|
||||
|
|
@ -429,18 +394,11 @@ static void dmxProcessInputEvents(DMXInputInfo *dmxInput)
|
|||
{
|
||||
int i;
|
||||
|
||||
#if 00 /*BP*/
|
||||
miPointerUpdate();
|
||||
#endif
|
||||
if (dmxInput->detached)
|
||||
return;
|
||||
for (i = 0; i < dmxInput->numDevs; i += dmxInput->devs[i]->binding)
|
||||
if (dmxInput->devs[i]->process_input) {
|
||||
#if 11 /*BP*/
|
||||
//miPointerUpdateSprite(dmxInput->devs[i]->pDevice);
|
||||
#endif
|
||||
if (dmxInput->devs[i]->process_input)
|
||||
dmxInput->devs[i]->process_input(dmxInput->devs[i]->private);
|
||||
}
|
||||
}
|
||||
|
||||
static void dmxGrabButton(DMXInputInfo *dmxInput,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue