dmx: Delete unused ChangeKeyboardDevice/ChangePointerDevice.
Daniel Stone deleted the API for these in 2006, in commit
96e32805d1.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
			
			
This commit is contained in:
		
							parent
							
								
									7045486491
								
							
						
					
					
						commit
						cd0ef0b6a2
					
				| 
						 | 
					@ -51,63 +51,6 @@
 | 
				
			||||||
#include "dmxinputinit.h"
 | 
					#include "dmxinputinit.h"
 | 
				
			||||||
#include "exevents.h"
 | 
					#include "exevents.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** Change the core keyboard from \a old_dev to \a new_dev.  Currently
 | 
					 | 
				
			||||||
 * this is not implemented. */
 | 
					 | 
				
			||||||
int ChangeKeyboardDevice(DeviceIntPtr old_dev, DeviceIntPtr new_dev)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
#if 0
 | 
					 | 
				
			||||||
    DMXLocalInputInfoPtr dmxLocalOld = old_dev->public.devicePrivate;
 | 
					 | 
				
			||||||
    DMXLocalInputInfoPtr dmxLocalNew = new_dev->public.devicePrivate;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
                                /* Switch our notion of core keyboard */
 | 
					 | 
				
			||||||
    dmxLocalOld->isCore         = 0;
 | 
					 | 
				
			||||||
    dmxLocalOld->sendsCore      = dmxLocalOld->savedSendsCore;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    dmxLocalNew->isCore         = 1;
 | 
					 | 
				
			||||||
    dmxLocalNew->savedSendsCore = dmxLocalNew->sendsCore;
 | 
					 | 
				
			||||||
    dmxLocalNew->sendsCore      = 1;
 | 
					 | 
				
			||||||
    dmxLocalCorePointer         = dmxLocalNew;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    RegisterKeyboardDevice(new_dev);
 | 
					 | 
				
			||||||
    RegisterOtherDevice(old_dev);
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    return Success;
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
    return BadMatch;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/** Change the core pointer from \a old_dev to \a new_dev. */
 | 
					 | 
				
			||||||
int ChangePointerDevice(DeviceIntPtr old_dev,
 | 
					 | 
				
			||||||
                        DeviceIntPtr new_dev,
 | 
					 | 
				
			||||||
                        unsigned char x,
 | 
					 | 
				
			||||||
                        unsigned char y)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    DMXLocalInputInfoPtr dmxLocalOld = old_dev->public.devicePrivate;
 | 
					 | 
				
			||||||
    DMXLocalInputInfoPtr dmxLocalNew = new_dev->public.devicePrivate;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    if (x != 0 || y != 1) return BadMatch;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                                /* Make sure the new device can focus */
 | 
					 | 
				
			||||||
    InitFocusClassDeviceStruct(old_dev);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                                /* Switch the motion history buffers */
 | 
					 | 
				
			||||||
    if (dmxLocalOld->savedMotionProc) {
 | 
					 | 
				
			||||||
        old_dev->valuator->numMotionEvents = dmxLocalOld->savedMotionEvents;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    dmxLocalNew->savedMotionEvents     = new_dev->valuator->numMotionEvents;
 | 
					 | 
				
			||||||
    new_dev->valuator->numMotionEvents = GetMaximumEventsNum();
 | 
					 | 
				
			||||||
                                /* Switch our notion of core pointer */
 | 
					 | 
				
			||||||
    dmxLocalOld->isCore         = 0;
 | 
					 | 
				
			||||||
    dmxLocalOld->sendsCore      = dmxLocalOld->savedSendsCore;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    dmxLocalNew->isCore         = 1;
 | 
					 | 
				
			||||||
    dmxLocalNew->savedSendsCore = dmxLocalNew->sendsCore;
 | 
					 | 
				
			||||||
    dmxLocalNew->sendsCore      = 1;
 | 
					 | 
				
			||||||
    dmxLocalCorePointer         = dmxLocalNew;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    return Success;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/** Close the input device.  This is not required by the XINPUT model
 | 
					/** Close the input device.  This is not required by the XINPUT model
 | 
				
			||||||
 * that DMX uses. */
 | 
					 * that DMX uses. */
 | 
				
			||||||
void CloseInputDevice (DeviceIntPtr d, ClientPtr client)
 | 
					void CloseInputDevice (DeviceIntPtr d, ClientPtr client)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue