Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

665 B
Raw Blame
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 Cua AI, Inc.

//! Portal/libei probe that establishes the session and enumerates readiness
//! without sending keyboard or pointer input.

fn main() {
    platform_linux::wayland::libei::ensure_started().expect("start libei worker");
    let keyboard = platform_linux::wayland::libei::wait_keyboard_ready();
    let pointer = platform_linux::wayland::libei::wait_pointer_ready();
    let scroll = platform_linux::wayland::libei::wait_scroll_ready();
    println!("keyboard={keyboard:?}");
    println!("pointer={pointer:?}");
    println!("scroll={scroll:?}");
    platform_linux::wayland::libei::shutdown();
}