Use initializer lists; faster.
This commit is contained in:
@@ -78,8 +78,9 @@ const GameButton GAME_BUTTON_INVALID = MAX_GAME_BUTTONS+1;
|
|||||||
|
|
||||||
struct GameInput
|
struct GameInput
|
||||||
{
|
{
|
||||||
GameInput() { MakeInvalid(); };
|
GameInput(): controller(GAME_CONTROLLER_INVALID), button(GAME_BUTTON_INVALID) { }
|
||||||
GameInput( GameController c, GameButton b ) { controller = c; button = b; };
|
|
||||||
|
GameInput( GameController c, GameButton b ): controller(c), button(b) { }
|
||||||
|
|
||||||
GameController controller;
|
GameController controller;
|
||||||
GameButton button;
|
GameButton button;
|
||||||
|
|||||||
Reference in New Issue
Block a user