I've worked keybinding functionality into Python, but there are some workarounds and notes (See the Jankfile)

This commit is contained in:
John McCardle 2023-07-16 23:30:00 -04:00
commit e85861cbb2
7 changed files with 40 additions and 9 deletions

View file

@ -558,8 +558,10 @@ PyObject* McRFPy_API::_registerInputAction(PyObject *self, PyObject *args)
bool success;
if (actionstr == NULL) { // Action provided is None, i.e. unregister
std::cout << "Unregistering\n";
success = game->currentScene()->unregisterActionInjected(action_code, std::string(actionstr) + "_py");
} else {
std::cout << "Registering" << actionstr << "_py to " << action_code << "\n";
success = game->currentScene()->registerActionInjected(action_code, std::string(actionstr) + "_py");
}