1
0
mirror of https://github.com/4yn/slidershim.git synced 2024-09-23 18:58:27 +02:00

update ui

This commit is contained in:
4yn 2022-07-24 21:11:48 +08:00
parent 571eec24d3
commit e0046ede81
6 changed files with 50 additions and 36 deletions

View File

@ -615,18 +615,14 @@ dependencies = [
[[package]]
name = "interception"
version = "0.1.2"
version = "0.1.0"
dependencies = [
"bitflags",
"interception-sys",
"cc",
"num_enum",
"serde",
]
[[package]]
name = "interception-sys"
version = "0.1.3"
[[package]]
name = "ipconfig"
version = "0.3.0"

View File

@ -31,7 +31,7 @@ serialport = "4.0.1"
wwserial = {path = "../src-wwserial" }
vigem-client = { version = "0.1.2", features = ["unstable"] }
winapi = "0.3.9"
interception = {path = "../src-interception-rs" }
interception = {path = "../src-interception" }
ipconfig = "0.3.0"
# webserver

23
src-tauri/Cargo.lock generated
View File

@ -1499,18 +1499,14 @@ dependencies = [
[[package]]
name = "interception"
version = "0.1.2"
version = "0.1.0"
dependencies = [
"bitflags",
"interception-sys",
"cc",
"num_enum",
"serde",
]
[[package]]
name = "interception-sys"
version = "0.1.3"
[[package]]
name = "ipconfig"
version = "0.3.0"
@ -2064,6 +2060,16 @@ dependencies = [
"windows-sys",
]
[[package]]
name = "open"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f23a407004a1033f53e93f9b45580d14de23928faad187384f891507c9b0c045"
dependencies = [
"pathdiff",
"windows-sys",
]
[[package]]
name = "palette"
version = "0.6.1"
@ -2994,7 +3000,7 @@ version = "0.3.1"
dependencies = [
"env_logger",
"log",
"open",
"open 2.1.3",
"parking_lot 0.12.1",
"simple-logging",
"slider_io",
@ -3210,9 +3216,11 @@ dependencies = [
"ignore",
"objc",
"once_cell",
"open 3.0.2",
"percent-encoding",
"rand 0.8.5",
"raw-window-handle",
"regex",
"semver 1.0.12",
"serde",
"serde_json",
@ -3264,6 +3272,7 @@ dependencies = [
"png 0.17.5",
"proc-macro2",
"quote",
"regex",
"semver 1.0.12",
"serde",
"serde_json",

View File

@ -19,7 +19,7 @@ env_logger = "0.9.0"
parking_lot = "0.12.0"
tauri = { version = "1.0.4", features = ["system-tray", "window-start-dragging"] }
tauri = { version = "1.0.4", features = ["shell-open", "system-tray", "window-start-dragging"] }
open = "2.0.2"
slider_io = {path = "../src-slider_io" }

View File

@ -50,6 +50,9 @@
"all": false,
"window": {
"startDragging": true
},
"shell": {
"open": true
}
},
"windows": [

View File

@ -390,27 +390,33 @@
</div>
{/if}
{#if outputMode.slice(0, 2) === "kb"}
<div class="row">
<div class="label" title="Larger means harder to trigger">
Use DirectInput emulation
<div class="row">
<div class="label" />
<div class="input">
<span>
<input
type="checkbox"
id="direct-input"
style="width: unset;"
bind:checked={keyboardDirectInput}
on:change={markDirty}
/>
<label for="disable-air">Use DirectInput</label>
</span>
</div>
</div>
<div class="input">
<input
type="checkbox"
bind:checked={keyboardDirectInput}
on:change={markDirty}
/>
</div>
</div>
<div class="row">
<div class="label" />
<div class="input comment">
DirectInput emulation requires <Link
href="https://github.com/oblitum/Interception/releases/tag/v1.0.1">Interception</Link
> to be installed
</div>
</div>
{/if}
{#if keyboardDirectInput}
<div class="row">
<div class="label" />
<div class="input comment">
DirectInput emulation requires <Link
href="https://github.com/oblitum/Interception/releases/tag/v1.0.1"
>Interception</Link
>
</div>
</div>
{/if}
{/if}
{#if outputMode === "websocket"}
<div class="row">
<div class="label">Output URL</div>
@ -544,7 +550,7 @@
{#if ledMode === "serial"}
<div class="row">
<div class="label" />
<div class="input">
<div class="input comment">
Serial LED may require <Link
href="https://sourceforge.net/projects/com0com/files/com0com/2.2.2.0/com0com-2.2.2.0-x64-fre-signed.zip/download"
>com0com</Link