I am creating a game in gamebryo and I am trying to add a menu to it. In a class where I create the gams states I have added a state for the menu which I have added in the code ection below.
The double in this code below is the time the menu screen is displayed. I want to replace this with a key input so it will disapear when the user presses a key.
Below I have put the code of a key input in gamebyro just to show how to do it. I am just struggling to put this syntax together.
NiAction::KEY_MASK | NiInputKeyboard::KEY_UP,
_ACTIVATE | ecrInput::InputService::ON