From 6fb42b9babf47257722fdfdc88e1507e0837d3c5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 13 Jul 2003 00:33:06 +0000 Subject: [PATCH] Add a timestamp to DeviceInput. (Until this is implemented, it'll default to the time the class is constructed.) --- stepmania/src/RageInputDevice.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/RageInputDevice.h b/stepmania/src/RageInputDevice.h index c031dca390..184d8b3f62 100644 --- a/stepmania/src/RageInputDevice.h +++ b/stepmania/src/RageInputDevice.h @@ -2,6 +2,7 @@ #define RAGEINPUTDEVICE_H 1 #include "SDL_keysym.h" +#include "RageTimer.h" const int NUM_KEYBOARD_BUTTONS = SDLK_LAST; const int NUM_JOYSTICKS = 4; @@ -60,6 +61,7 @@ struct DeviceInput public: InputDevice device; int button; + RageTimer ts; DeviceInput() { device=DEVICE_NONE; }; DeviceInput( InputDevice d, int b ) { device=d; button=b; };