//! No-op stub for non-Linux platforms.
//!
//! On macOS and Windows, Tauri's global-shortcut plugin handles hotkeys
//! natively. This stub exists so the crate compiles on all platforms.

use tokio::sync::mpsc;

use crate::HotkeyCombo;

/// Events emitted by the hotkey listener.
#[derive(Debug, Clone)]
pub enum HotkeyEvent {
    Pressed,
    Released,
}

/// Stub listener that does nothing on non-Linux platforms.
pub struct EvdevHotkeyListener;

impl EvdevHotkeyListener {
    pub fn start(_combo: HotkeyCombo, _event_tx: mpsc::Sender<HotkeyEvent>) -> Self {
        log::info!("evdev hotkey listener is a no-op on this platform");
        Self
    }

    pub fn set_hotkey(&self, _combo: HotkeyCombo) {}

    pub async fn stop(&self) {}
}
