Skip to content

Commit ae2e0c4

Browse files
committed
use easy_rdev_key as library
1 parent 11a0f91 commit ae2e0c4

File tree

5 files changed

+18
-260
lines changed

5 files changed

+18
-260
lines changed

Cargo.lock

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ windows = { version = "0.52.0", features = [
4949
"Win32_Media_Audio",
5050
"Win32_Media_Audio_Endpoints",
5151
] }
52+
easy_rdev_key = "0.1.0"

src/easy_rdev_key.rs

Lines changed: 0 additions & 253 deletions
This file was deleted.

src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,15 @@ use async_std::future;
4141
use clap::{Parser, Subcommand};
4242
use colored::Colorize;
4343
use cpal::traits::{DeviceTrait, HostTrait};
44+
use enigo::{Enigo, KeyboardControllable};
4445
use rdev::{listen, Event};
4546
use record::rec;
47+
use speakstream::ss;
4648
use std::error::Error;
4749
use std::sync::LazyLock;
4850
use std::time::Duration;
49-
use uuid::Uuid;
50-
mod easy_rdev_key;
51-
use enigo::{Enigo, KeyboardControllable};
52-
use speakstream::ss;
5351
use timers::AudibleTimers;
52+
use uuid::Uuid;
5453
mod options;
5554
#[cfg(target_os = "windows")]
5655
mod windows_volume;

src/options.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use crate::{SubCommands, VoiceEnum};
12
use clap::Parser;
2-
3-
use crate::{easy_rdev_key, SubCommands, VoiceEnum};
3+
use easy_rdev_key::PTTKey;
44

55
#[derive(Parser, Debug)]
66
#[command(version)]

0 commit comments

Comments
 (0)