From f2cb1defa00d6dd432958557afaede0663542c85 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Thu, 14 Mar 2024 11:22:06 +0100 Subject: [PATCH] Remove keypress simulation functionality stub --- src/config.rs | 5 +---- src/controller.rs | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/config.rs b/src/config.rs index 4ead019..ad822be 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,5 +1,5 @@ use int_enum::IntEnum; -use log::{error, info, warn}; +use log::error; use serde::{Deserialize, Serialize}; use std::path::Path; use std::process; @@ -100,9 +100,6 @@ pub enum KeyMapVariant { PipeWire { ids: Vec, }, - Key { - keycode: u8, //TODO: add real keycodes - }, Exec { command: String, args: Option>, diff --git a/src/controller.rs b/src/controller.rs index fee658a..dbc750b 100644 --- a/src/controller.rs +++ b/src/controller.rs @@ -92,7 +92,6 @@ fn eval(key: NanoKeys, state: u8, config: &Arc) { } }, KeyMapVariant::PipeWire { ids } => {} - KeyMapVariant::Key { keycode } => {} KeyMapVariant::Exec { command, args } => { let output: Result = match args { Some(some_args) => Command::new(command).args(some_args).output(),