Use initializer lists; faster.

This commit is contained in:
Glenn Maynard
2002-08-26 06:39:51 +00:00
parent 950f9c1645
commit 657614d11a
+3 -2
View File
@@ -78,8 +78,9 @@ const GameButton GAME_BUTTON_INVALID = MAX_GAME_BUTTONS+1;
struct GameInput
{
GameInput() { MakeInvalid(); };
GameInput( GameController c, GameButton b ) { controller = c; button = b; };
GameInput(): controller(GAME_CONTROLLER_INVALID), button(GAME_BUTTON_INVALID) { }
GameInput( GameController c, GameButton b ): controller(c), button(b) { }
GameController controller;
GameButton button;