diff options
| author | a1xd <[email protected]> | 2021-09-22 20:49:04 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-22 20:49:04 -0400 |
| commit | 8a4b6f57758338d5537d4671184099a4728a8cdd (patch) | |
| tree | df36529a344d5d21ff11f5ba021ec80afb4b68a4 /driver/driver.h | |
| parent | Merge pull request #87 from matthewstrasiotto/streamer_mode (diff) | |
| parent | improve converter + docs (diff) | |
| download | rawaccel-8a4b6f57758338d5537d4671184099a4728a8cdd.tar.xz rawaccel-8a4b6f57758338d5537d4671184099a4728a8cdd.zip | |
Merge pull request #105 from a1xd/1.5.x
v1.5
Diffstat (limited to 'driver/driver.h')
| -rw-r--r-- | driver/driver.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/driver/driver.h b/driver/driver.h index a0381fb..6184a69 100644 --- a/driver/driver.h +++ b/driver/driver.h @@ -1,11 +1,11 @@ #pragma once -#include <ntddk.h> +#include "rawaccel-base.hpp" +#include "rawaccel-io-def.h" + #include <kbdmou.h> #include <wdf.h> -#include "rawaccel-settings.h" - #if DBG #define DebugPrint(_x_) DbgPrint _x_ #else @@ -16,12 +16,13 @@ #define SYMBOLIC_NAME_STRING L"\\DosDevices\\rawaccel" using counter_t = long long; +namespace ra = rawaccel; typedef struct _DEVICE_EXTENSION { counter_t counter; vec2d carry; CONNECT_DATA UpperConnectData; - WCHAR dev_id[MAX_DEV_ID_LEN]; + WCHAR dev_id[ra::MAX_DEV_ID_LEN]; } DEVICE_EXTENSION, *PDEVICE_EXTENSION; WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(DEVICE_EXTENSION, FilterGetData) |