Skip to main content

action_device_path

Function action_device_path 

Source
pub fn action_device_path() -> Option<PathBuf>
Expand description

Return the /dev/input/eventN node for the action-injector uinput device, initialising it if needed.

Intended for debugging and manual smoke-testing (e.g. attaching evtest before firing Action::execute). Returns None on non-Linux platforms or when the device could not be created (e.g. /dev/uinput not writable).