Optimize: remove spurious RageTimer construction

This commit is contained in:
Glenn Maynard
2003-09-07 22:39:04 +00:00
parent 7f25e3c410
commit 65e44b1f86
+4 -3
View File
@@ -63,9 +63,10 @@ public:
int button;
RageTimer ts;
DeviceInput() { device=DEVICE_NONE; button=-1; ts.SetZero(); }
DeviceInput( InputDevice d, int b ) { device=d; button=b; ts.SetZero(); }
DeviceInput( InputDevice d, int b, const RageTimer &t ) { device=d; button=b; ts = t; }
DeviceInput(): device(DEVICE_NONE), button(-1), ts(RageZeroTimer) { }
DeviceInput( InputDevice d, int b ): device(d), button(b), ts(RageZeroTimer) { }
DeviceInput( InputDevice d, int b, const RageTimer &t ):
device(d), button(b), ts(t) { }
bool operator==( const DeviceInput &other )
{