mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-04 12:27:47 +00:00
476245564cf57d092ed7ec9ec559bf042b75a61e
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)]
Simple DirectMedia Layer (SDL) Version 3.0
Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.
More extensive documentation is available in the docs directory, starting with README.md. If you are migrating to SDL 3.0 from SDL 2.0, the changes are extensively documented in README-migration.md.
Enjoy!
Sam Lantinga (slouken@libsdl.org)
Languages
C
86.4%
C++
5.8%
Objective-C
3.4%
CMake
1.6%
Perl
0.8%
Other
1.7%