pause keyboard input

i’ve used the accept() to make it listens to some keyboard commands,
how to freeze the input from keyboard or pause it for a while? enable disable? remove?

Not entirely sure what you mean by “pause”. If you mean, to pause the entire simulation for a little while, try searching the forums for “pause” (or just look at this thread and threads linked from it).

If you want Panda to stop generating events in response to keypresses, but otherwise continue rendering, well, there are ways to do this, but probably it’s easier just to stop listening for events, or to write your event handlers so that they don’t do anything when an event is received.


Take a look at the ‘ignoreAll’ method of DirectObject.