mirror of
https://github.com/4yn/slidershim.git
synced 2026-09-07 08:15:33 -05:00
use statically linked interception library for directinput emulation
This commit is contained in:
15
src-tauri/Cargo.lock
generated
15
src-tauri/Cargo.lock
generated
@@ -1497,6 +1497,20 @@ dependencies = [
|
||||
"cfg-if",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "interception"
|
||||
version = "0.1.2"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"interception-sys",
|
||||
"num_enum",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "interception-sys"
|
||||
version = "0.1.3"
|
||||
|
||||
[[package]]
|
||||
name = "ipconfig"
|
||||
version = "0.3.0"
|
||||
@@ -2954,6 +2968,7 @@ dependencies = [
|
||||
"futures-util",
|
||||
"hyper",
|
||||
"image 0.23.14",
|
||||
"interception",
|
||||
"ipconfig",
|
||||
"log",
|
||||
"palette",
|
||||
|
||||
@@ -38,6 +38,7 @@ fn main() {
|
||||
env_logger::Builder::new()
|
||||
.filter_level(log::LevelFilter::Debug)
|
||||
.init();
|
||||
info!("Starting slidershim");
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
{
|
||||
@@ -45,7 +46,9 @@ fn main() {
|
||||
simple_logging::log_to_file(log_file_path.as_path(), log::LevelFilter::Debug).unwrap();
|
||||
}
|
||||
|
||||
info!("Loading config");
|
||||
let config = Arc::new(Mutex::new(Some(slider_io::Config::load())));
|
||||
info!("Loading manager");
|
||||
let manager = Arc::new(Mutex::new(slider_io::Manager::new()));
|
||||
{
|
||||
let config_handle = config.lock();
|
||||
@@ -55,6 +58,7 @@ fn main() {
|
||||
manager_handle.update_config(config_handle_ref.clone());
|
||||
}
|
||||
|
||||
info!("Running tauri");
|
||||
tauri::Builder::default()
|
||||
.system_tray(
|
||||
// System tray content
|
||||
|
||||
Reference in New Issue
Block a user