mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-21 00:01:07 +01:00
These always exist so they don't really help detect whether a keyboard/mouse is attached. Looking at the slave devices isn't that helpful either, as they're very permissive in what they might send. For example, on my system with a single mouse and keyboard attached, xinput -list shows: Virtual core pointer id=2 [master pointer (3)] - Virtual core XTEST pointer id=4 [slave pointer (2)] - Generic USB Mouse id=10 [slave pointer (2)] - Generic USB Consumer Control id=11 [slave pointer (2)] - KINESIS CORPORATION KB800HM Kinesis Freestyle2 for Mac id=18 [slave pointer (2)] - Logitech Gaming Mouse G502 Consumer Control id=15 [slave pointer (2)] - Logitech Gaming Mouse G502 id=17 [slave pointer (2)] Virtual core keyboard id=3 [master keyboard (2)] - Virtual core XTEST keyboard id=5 [slave keyboard (3)] - Power Button id=6 [slave keyboard (3)] - Power Button id=7 [slave keyboard (3)] - Sleep Button id=8 [slave keyboard (3)] - Generic USB id=9 [slave keyboard (3)] - Generic USB System Control id=12 [slave keyboard (3)] - Generic USB Consumer Control id=19 [slave keyboard (3)] - KINESIS CORPORATION KB800HM Kinesis Freestyle2 for Mac id=20 [slave keyboard (3)] - KINESIS CORPORATION KB800HM Kinesis Freestyle2 for Mac id=21 [slave keyboard (3)] - Logitech Gaming Mouse G502 Keyboard id=13 [slave keyboard (3)] - Logitech Gaming Mouse G502 System Control id=14 [slave keyboard (3)] - Logitech Gaming Mouse G502 Consumer Control id=16 [slave keyboard (3)]