diff --git a/hw/dmx/input/dmxinputinit.c b/hw/dmx/input/dmxinputinit.c index 2c37b45e1..ab81f9c8f 100644 --- a/hw/dmx/input/dmxinputinit.c +++ b/hw/dmx/input/dmxinputinit.c @@ -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,