Skip DeviceChanged events

The device changed events are generated in the VM environment. Skip
the XI_DeviceChanged events to be able to detect swipe.