Skip to content

Commit

Permalink
disable joystickhandler for now
Browse files Browse the repository at this point in the history
  • Loading branch information
fishman committed Sep 24, 2024
1 parent 33c7491 commit 2e40bbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod utils;
mod wljoywake;

use types::Request;
use wljoywake::JoystickHandler;
//use wljoywake::JoystickHandler;

const CONFIG_FILE: &str = include_str!("../lua_configs/idle_config.lua");

Expand Down Expand Up @@ -357,8 +357,8 @@ async fn main() -> anyhow::Result<()> {
let shared_map = Arc::new(Mutex::new(map));
let lua = Arc::new(Mutex::new(Lua::new()));
let dbus_handlers = Arc::new(Mutex::new(HashMap::new()));
let joystick_handler = Arc::new(TokioMutex::new(JoystickHandler::new()));
let _ = tokio::spawn(JoystickHandler::run(joystick_handler.clone())).await;
//let joystick_handler = Arc::new(TokioMutex::new(JoystickHandler::new()));
//let _ = tokio::spawn(JoystickHandler::run(joystick_handler.clone())).await;
//let _ = tokio::spawn(JoystickHandler::udev_handler_run(joystick_handler.clone())).await;

let config_path = utils::xdg_config_path(None)?;
Expand Down

0 comments on commit 2e40bbe

Please sign in to comment.