Add a timestamp to DeviceInput. (Until this is implemented, it'll default

to the time the class is constructed.)
This commit is contained in:
Glenn Maynard
2003-07-13 00:33:06 +00:00
parent cbcf0dbbf8
commit 6fb42b9bab
+2
View File
@@ -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; };