We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To enable environments that use commands, like https://github.com/Astera-org/dreamerv3/issues/7.
The text was updated successfully, but these errors were encountered:
Solution direction:
Add some data to the Action struct in the capnp protocol:
Action
struct Action { keyEvents @0 :List(KeyPressType.Key); mouseDx @1 :Int32; mouseDy @2 :Int32; inputString @3 : String; <-- something like this? }
Then, at the right time (after the cmd keypress takes effect), send an SEvent or two to the right EventHandlers.
cmd
SEvent
EventHandler
if (m_key_was_pressed[keycache.key[KeyType::CMD]]) { SEvent event; event.EventType = irr::EET_STRING_INPUT_EVENT; event.StringInput.Str = new core::stringw("max"); m_rendering_engine->get_gui_env()->postEventFromUser(event); delete event.StringInput.Str; }
Sorry, something went wrong.
Not needed for now because we implemented globo interactions through items instead: https://github.com/Astera-org/globo/pull/30
No branches or pull requests
To enable environments that use commands, like https://github.com/Astera-org/dreamerv3/issues/7.
The text was updated successfully, but these errors were encountered: