summaryrefslogtreecommitdiff
path: root/common/rawaccel-io.hpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-07-31 20:36:17 -0400
committera1xd <[email protected]>2020-07-31 20:36:17 -0400
commitb49a91627faa6411023f7823250337cc1a71af82 (patch)
treead50871f3067dbca729e3ecfe6307fc774004b4d /common/rawaccel-io.hpp
parentmove write function into common io header (diff)
downloadrawaccel-b49a91627faa6411023f7823250337cc1a71af82.tar.xz
rawaccel-b49a91627faa6411023f7823250337cc1a71af82.zip
move clipp/parse logic into console project
Diffstat (limited to 'common/rawaccel-io.hpp')
-rw-r--r--common/rawaccel-io.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/rawaccel-io.hpp b/common/rawaccel-io.hpp
index 7a4c59c..4050f07 100644
--- a/common/rawaccel-io.hpp
+++ b/common/rawaccel-io.hpp
@@ -9,6 +9,9 @@
#define RA_IOCTL CTL_CODE(0x8888, 0x888, METHOD_BUFFERED, FILE_ANY_ACCESS)
+#pragma warning(push)
+#pragma warning(disable:4245) // int -> DWORD conversion while passing RA_IOCTL
+
namespace rawaccel {
mouse_modifier read() {
@@ -43,6 +46,7 @@ namespace rawaccel {
return mod;
}
+
void write(mouse_modifier mod) {
HANDLE ra_handle = INVALID_HANDLE_VALUE;
@@ -73,3 +77,5 @@ namespace rawaccel {
}
}
+
+#pragma warning(pop)