use statically linked interception library for directinput emulation

This commit is contained in:
4yn
2022-07-24 21:12:40 +08:00
parent 0e75256520
commit 571eec24d3
20 changed files with 1948 additions and 31 deletions
+46
View File
@@ -613,6 +613,20 @@ dependencies = [
"hashbrown",
]
[[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"
@@ -864,6 +878,27 @@ dependencies = [
"libc",
]
[[package]]
name = "num_enum"
version = "0.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf5395665662ef45796a4ff5486c5d41d29e0c09640af4c5f17fd94ee2c119c9"
dependencies = [
"num_enum_derive",
]
[[package]]
name = "num_enum_derive"
version = "0.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b0498641e53dd6ac1a4f22547548caa6864cc4933784319cd1775271c5a46ce"
dependencies = [
"proc-macro-crate",
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "once_cell"
version = "1.9.0"
@@ -1053,6 +1088,16 @@ version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
[[package]]
name = "proc-macro-crate"
version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e17d47ce914bf4de440332250b0edd23ce48c005f59fab39d3335866b114f11a"
dependencies = [
"thiserror",
"toml",
]
[[package]]
name = "proc-macro-hack"
version = "0.5.19"
@@ -1308,6 +1353,7 @@ dependencies = [
"futures-util",
"hyper",
"image",
"interception",
"ipconfig",
"log",
"palette",