could keyboard_callback response to key_pressed and key_up? and overwrite shortkeys of launch_passive
#2901
Unanswered
furyNerd
asked this question in
Asking for Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
Hi!
below is my test code
i got two question:
by using a simple
launch_passive, is there a way to response tokey_pressedorkey_releaseevent?by which , i wish
tmp_valueis10.0whenwis keeping pressed, while whenwis released thetmp_valuecould reset to0.0;the code i presented looks like when
wis stroke,tmp_valueis set to be10.0forever.by
launch_passive, the mujoco GUI binds some default shorkeys, likewis a swither for opengl wireframe. how could i overwrite these shortkeys?i found Projectile Game( as #741 (comment) suggusted ) could address Q2 but Q1 still unsolved, and a little bit of complicated for a quick setup usecase.
so i'm hope if there is a simple and lightweight solution(maybe a thread to listen to keys for Q1)? thanks very much for any advice.
My setup
mujoco 3.3.7, python 3.13.0, win11
Beta Was this translation helpful? Give feedback.
All reactions