Files
RedBear-OS/local/recipes/system/evdevd
vasilito 0ab5ccd362 evdevd: v6.0 single-producer mode — consume Linux struct input_event
The v6.0 desktop plan replaces the dual-path input architecture
(inputd orbclient + evdevd bridge) with a single Linux evdev
producer. evdevd now reads from /scheme/input/evdev and relays
events as-is to its per-device queues.

Changes:
  - main.rs: InputConsumer opens /scheme/input/evdev (not
    /scheme/input/consumer). Reads 8-byte WireEvent records
    (u16 type, u16 code, i32 value) — matches Linux
    struct input_event (sans time fields, which evdevd's
    types::InputEvent::new adds).
  - main.rs: dispatch_evdev_event() replaces the orbclient
    EventOption translation logic. Events go straight to the
    scheme's queue.
  - main.rs: drop unused 'use size_of' and 'use orbclient' imports.
  - scheme.rs: new push_input_event(event_type, code, value)
    method. Routes events to the correct device (keyboard,
    mouse, or touchpad) based on event type/code. SYN_REPORT
    is broadcast to all devices so the libinput consumer sees
    a complete report.
  - scheme.rs: new queue_raw_event() helper for push_input_event.
  - main.rs: log message updated to 'v6.0 single-producer mode'.

The legacy feed_*() methods (orbclient -> evdev translation)
remain in scheme.rs for now, used by the existing unit tests
and as a fallback path. They will be removed in a follow-up
cleanup once /scheme/input/evdev is confirmed working in QEMU.

cargo check --target x86_64-unknown-redox: 0 errors, 26 warnings
(all warnings are in legacy translate.rs/feed_* methods that
are now unused but kept for backward compat).
2026-06-09 02:05:13 +03:00
..