Talk:Consecutive Key Presses

From Valve Developer Community
Revision as of 13:53, 8 November 2007 by AndreZero (talk | contribs) (→‎Article Name)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Initializing?

I always like to be on the safe side when initializing variables. Does VS.Net default to initializing the struct values to 0? I would use this slightly modified version:

struct KeyTracker 
{

	int flag;
	float LastPressTime;

} doubleTap[ 2 ] = { {0, 0}, {0, 0} };

--Daedalus 05:25, 20 Jul 2007 (PDT)


Article Name

I recommend this be renamed to Consecutive Key Presses. Simultaneous would be for keys pressed at once, whereas Consecutive means one after another. Does anyone else agree? --Daedalus 05:27, 20 Jul 2007 (PDT)

I agree, so I went ahead and renamed it! -- AndreZero 09 Nov 2007