{"id":60448,"library":"libxi","title":"libXi","description":"Xlib library for the X Input Extension","status":"active","version":"1.8.2","language":"cpp","source_language":null,"source_url":null,"tags":["x11","input","extension","linux"],"install":[{"cmd":"vcpkg install libxi","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(libxi CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE X11::Xi)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"X11/extensions/XInput.h","correct":"#include <X11/extensions/XInput.h>"}],"quickstart":{"code":"#include <X11/extensions/XInput.h>\n#include <X11/Xlib.h>\n#include <stdio.h>\n\nint main() {\n    Display *display = XOpenDisplay(NULL);\n    if (!display) return 1;\n    int opcode, event, error;\n    if (!XQueryExtension(display, \"XInputExtension\", &opcode, &event, &error)) {\n        printf(\"XInput not available\\n\");\n        return 1;\n    }\n    printf(\"XInput extension available\\n\");\n    XCloseDisplay(display);\n    return 0;\n}","lang":"cpp","description":"Check if XInput extension is available"},"warnings":[{"fix":"Install libx11-dev and libxi-dev on Linux; not available on Windows/macOS.","message":"Requires X11 development libraries and runtime X server.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'extens':8,11 'input':7,10 'librari':3 'libxi':1 'linux':12 'x':6 'x11':9 'xlib':2","created_at":"2026-06-16T19:31:17.930724+00:00","updated_at":"2026-06-16T19:31:17.930724+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}