| 133 | bindInputCondition["isEnabled"] = &obe::Input::InputCondition::isEnabled; |
| 134 | } |
| 135 | void LoadClassInputManager(sol::state_view state) |
| 136 | { |
| 137 | sol::table InputNamespace = state["obe"]["Input"].get<sol::table>(); |
| 138 | sol::usertype<obe::Input::InputManager> bindInputManager |
| 139 | = InputNamespace.new_usertype<obe::Input::InputManager>("InputManager", |
| 140 | sol::call_constructor, sol::constructors<obe::Input::InputManager()>(), |
| 141 | sol::base_classes, sol::bases<obe::Types::Togglable>()); |
| 142 | bindInputManager["init"] = &obe::Input::InputManager::init; |
| 143 | bindInputManager["actionExists"] = &obe::Input::InputManager::actionExists; |
| 144 | bindInputManager["addContext"] = &obe::Input::InputManager::addContext; |
| 145 | bindInputManager["getAction"] = &obe::Input::InputManager::getAction; |
| 146 | bindInputManager["getContexts"] = &obe::Input::InputManager::getContexts; |
| 147 | bindInputManager["clear"] = &obe::Input::InputManager::clear; |
| 148 | bindInputManager["clearContexts"] = &obe::Input::InputManager::clearContexts; |
| 149 | bindInputManager["configure"] = &obe::Input::InputManager::configure; |
| 150 | bindInputManager["removeContext"] = &obe::Input::InputManager::removeContext; |
| 151 | bindInputManager["setContext"] = &obe::Input::InputManager::setContext; |
| 152 | bindInputManager["update"] = &obe::Input::InputManager::update; |
| 153 | bindInputManager["getInput"] = &obe::Input::InputManager::getInput; |
| 154 | bindInputManager["getInputs"] = sol::overload( |
| 155 | static_cast<std::vector<obe::Input::InputButton*> ( |
| 156 | obe::Input::InputManager::*)()>(&obe::Input::InputManager::getInputs), |
| 157 | static_cast<std::vector<obe::Input::InputButton*> ( |
| 158 | obe::Input::InputManager::*)(obe::Input::InputType)>( |
| 159 | &obe::Input::InputManager::getInputs)); |
| 160 | bindInputManager["getPressedInputs"] |
| 161 | = &obe::Input::InputManager::getPressedInputs; |
| 162 | bindInputManager["monitor"] = sol::overload( |
| 163 | static_cast<obe::Input::InputButtonMonitorPtr (obe::Input::InputManager::*)( |
| 164 | const std::string&)>(&obe::Input::InputManager::monitor), |
| 165 | static_cast<obe::Input::InputButtonMonitorPtr (obe::Input::InputManager::*)( |
| 166 | obe::Input::InputButton&)>(&obe::Input::InputManager::monitor)); |
| 167 | bindInputManager["requireRefresh"] = &obe::Input::InputManager::requireRefresh; |
| 168 | } |
| 169 | void LoadFunctionInputButtonStateToString(sol::state_view state) |
| 170 | { |
| 171 | sol::table InputNamespace = state["obe"]["Input"].get<sol::table>(); |
nothing calls this directly
no test coverage detected