input_capabilities(3)
π input_capabilities(3) π
okay so this is the Arcan Lua API page for input_capabilities, and bestie, itβs literally the βwhat input can this thing actually handle?β function. β¨
πΈ NAME πΈ
input_capabilities β query platform layer or target for input capabilities. π
β¨ SYNOPSIS β¨
captbl, ident
input_capabilities( vid:fsrv )
π¦ DESCRIPTION π¦
This function queries the platform β thatβs the default β or a frameserver when you provide a valid fsrv argument. It asks for the current set of input capabilities in terms of devices (both cases) and data types (frameserver only). π
What comes back is a table where the keys are indexed with booleans that indicate whether the type is supported or not. Simple vibe: key goes in, boolean comes out, supported or nope. π«Ά
A frameserver may update this mask for a segment at will. When the mask is changed, an "input_mask" event will be sent to the frameservers assigned event handler. This mask will be applied to samples provided through target_input. π₯
For the platform, the set may also change when devices are added and removed in response to a device appearing and removing. So yeah, itβs lowkey alive like that. π
The set of provided or accepted devices may be zero, one or many of the following β and Iβm putting the exact spelling from the page here so nothing gets lost, no cap:
"keyboard, "mouse", "game", "touch", "position",
"orientation", "eyetracker"
The set of accepted datatypes may be zero, one or many of the following: "analog", "digital", "translated", "touch", "eyes". π
π EXAMPLE π
function input_capabilities0()
for k,v in pairs(input_capabilities()) do
print(k, v);
end
end
π SEE ALSO: π
iodevβ go peek, bestie. π¦
thatβs the whole page, bestie π«Ά β source/version says iodev, date is October 2026, and itβs the input_capabilities(3) page. periodt. π
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms