MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / PlayerOpenedMenu

Method PlayerOpenedMenu

Source/UserInput/input.cpp:991–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991int Input::PlayerOpenedMenu() {
992 for (size_t i = 0; i < player_inputs_.size(); ++i) {
993 if (player_inputs_[i].key_down["quit"].count == 1) {
994 return i;
995 }
996 }
997
998 return -1;
999}
1000
1001void Input::AllowControllerInput(bool allow) {
1002 allow_controller_input_ = allow;

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected