summaryrefslogtreecommitdiff
path: root/console/console.cpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-07-31 05:12:04 -0400
committerGitHub <[email protected]>2020-07-31 05:12:04 -0400
commitd5c012bcd5b7321671f9591a3e58d0b2c9507467 (patch)
treefe64110f7678607947d19c5ba0b46ea2b15d69c4 /console/console.cpp
parentMerge pull request #5 from JacobPalecki/WrapperAndGrapher (diff)
parentupdate grapher/wrapper for st-refactor (diff)
downloadrawaccel-d5c012bcd5b7321671f9591a3e58d0b2c9507467.tar.xz
rawaccel-d5c012bcd5b7321671f9591a3e58d0b2c9507467.zip
Merge pull request #6 from a1xd/st-refactor
Refactor
Diffstat (limited to 'console/console.cpp')
-rw-r--r--console/console.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/console/console.cpp b/console/console.cpp
index 6606cac..490051c 100644
--- a/console/console.cpp
+++ b/console/console.cpp
@@ -9,7 +9,7 @@
namespace ra = rawaccel;
-void write(ra::variables vars) {
+void write(ra::mouse_modifier vars) {
HANDLE ra_handle = INVALID_HANDLE_VALUE;
ra_handle = CreateFileW(L"\\\\.\\rawaccel", 0, 0, 0, OPEN_EXISTING, 0, 0);
@@ -24,7 +24,7 @@ void write(ra::variables vars) {
ra_handle,
RA_WRITE,
&vars,
- sizeof(ra::variables),
+ sizeof(ra::mouse_modifier),
NULL, // output buffer
0, // output buffer size
&dummy, // bytes returned