Skip to content

Commit

Permalink
Detect DPI stage events from the device
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoulios committed Mar 27, 2023
1 parent 7223a1f commit 9338645
Show file tree
Hide file tree
Showing 7 changed files with 268 additions and 71 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ default-members = ["gui"]

[workspace.package]
edition = "2021"
version = "0.3.1"
version = "0.3.2"
authors = ["George Poulios"]
description = "A utility to control Razer DeathAdder v2 on Windows"
readme = "./README.md"
repository = "https://github.com/gpoulios/deathadderv2"
license = "GPLv2"

[workspace.dependencies]
rgb = { version = "0.8.36" }
rgb = { version = "0.8.36" }
rusb = { version = "0.9" }
7 changes: 6 additions & 1 deletion gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ librazer = { path = "../lib" }
rgb = { workspace = true }
native-windows-gui = "1.0.13"
native-windows-derive = "1.0.5"
rusb = { workspace = true }
hidapi-rusb = "1.3.2"

[dependencies.windows]
version = "0.46.0"
Expand All @@ -24,4 +26,7 @@ features = [
"Win32_UI_Controls_Dialogs",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Diagnostics_Debug"
]
]

[build-dependencies]
embed-resource = "2.0.0"
4 changes: 4 additions & 0 deletions gui/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
use embed_resource;
fn main() {
embed_resource::compile("gui.rc", embed_resource::NONE);
}
21 changes: 21 additions & 0 deletions gui/gui.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="*"
name="app"
type="win32"
/>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
2 changes: 2 additions & 0 deletions gui/gui.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define RT_MANIFEST 24
1 RT_MANIFEST "gui.exe.manifest"
Loading

0 comments on commit 9338645

Please sign in to comment.