inputanalog_filter(3)
π inputanalog_filter(3) π
okay so bestie, we're in the Arcan Lua API manual and this page is all about inputanalog_filter(3). β¨
πΈ NAME πΈ
inputanalog_filter β changes the filtering / sampling options for a single analog input source. no cap, that's the whole name vibe. π
β¨ SYNOPSIS β¨
nil
inputanalog_filter( devid, axisid, deadzone, lower, upper, buffer,
modestr )
π« DESCRIPTION π«
okay so this function adds controls for how one specific device filters and forwards input samples for analog sources. it's giving "traffic control for your analog input", and honestly it's needed to reduce overall system load and latency, because high sampling rates have a tendency to clog event queues β even when you're not actively using them. π
to find the right devid and axisid to use, consult inputanalog_query, and inputanalog_toggle, as well as the applname_input event handler. iykyk. π«Ά
here's the parameter tea:
devidβ the device id. find it with the stuff above. πaxisidβ the axis id. same deal, bestie. πdeadzone,lower,upperβ these boundary values are expressed as signed 16-bit values due to legacy. values within the+- deadzonerange will be silently discarded, but not re-normalized. lowkey important: discarded does not mean re-centered. πbufferβ sets a number of samples that will be collected before filters are applied. π§modestrβ the description calls it modestring, and it can be one out of"drop","pass","average","latest"or"forget". the modes, in order:"drop"β all samples will be discarded."pass"β all samples will be forwarded."average"β all samples in the buffer will be averaged together, with a single sample emitted."latest"β only the last sample in the buffer will be forwarded."forget"β the entire device will be disconnected and ignored. this is mainly to allow other subsystems to have access to the device for input platforms that enforce exclusive access on such devices. this will be treated as a device-unplug scenario, causing related events to be emitted.
okay but real talk: "forget" is not just "ignore the vibe" β it disconnects the whole device and is treated like an unplug, so related events get emitted. π
π¦ SEE ALSO π¦
xoxo bestie π β this iconic page comes from iodev, dated October 2026. slay and read your man pages. π
π¦ 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