From 9d39a2bf6b521576f20b52e95956e4b194a8b307 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Thu, 6 Aug 2020 21:43:44 -0400 Subject: add a cooldown on write (one second) --- driver/driver.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'driver/driver.h') 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; -- cgit v1.2.3