@c0deaddict raised compatibility issues with mouse events not triggering via DeviceEvent in #22. I noticed another issue with DeviceEvent in which dragging the window by its chrome doesn't work properly on macOS when using DeviceEvent but the issue is resolved with the WindowEvent.