diff options
| author | a1xd <[email protected]> | 2020-08-06 21:43:44 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-08-06 21:43:44 -0400 |
| commit | 9d39a2bf6b521576f20b52e95956e4b194a8b307 (patch) | |
| tree | 50571ce8e080df57049809696cdf0808eb1018a5 /driver/driver.h | |
| parent | Merge pull request #12 from JacobPalecki/GUI (diff) | |
| download | rawaccel-9d39a2bf6b521576f20b52e95956e4b194a8b307.tar.xz rawaccel-9d39a2bf6b521576f20b52e95956e4b194a8b307.zip | |
add a cooldown on write (one second)
Diffstat (limited to 'driver/driver.h')
| -rw-r--r-- | driver/driver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/driver.h b/driver/driver.h index 2a400de..8554f8c 100644 --- a/driver/driver.h +++ b/driver/driver.h @@ -15,8 +15,10 @@ #define NTDEVICE_NAME L"\\Device\\rawaccel" #define SYMBOLIC_NAME_STRING L"\\DosDevices\\rawaccel" +using counter_t = long long; + typedef struct _DEVICE_EXTENSION { - LARGE_INTEGER counter; + counter_t counter; vec2d carry; CONNECT_DATA UpperConnectData; } DEVICE_EXTENSION, *PDEVICE_EXTENSION; |