Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
X11/extensions/XInput.h
✓ #include <X11/extensions/XInput.h>
Check if XInput extension is available
#include <X11/extensions/XInput.h>
#include <X11/Xlib.h>
#include <stdio.h>
int main() {
Display *display = XOpenDisplay(NULL);
if (!display) return 1;
int opcode, event, error;
if (!XQueryExtension(display, "XInputExtension", &opcode, &event, &error)) {
printf("XInput not available\n");
return 1;
}
printf("XInput extension available\n");
XCloseDisplay(display);
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.