MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / clear_bindings

Method clear_bindings

dm_control/viewer/user_input.py:221–227  ·  view source on GitHub ↗

Clears registered action bindings, while keeping key aliases.

(self)

Source from the content-addressed store, hash-verified

219 self._mouse.on_scroll -= self._handle_mouse_scroll
220
221 def clear_bindings(self):
222 """Clears registered action bindings, while keeping key aliases."""
223 self._action_callbacks = {}
224 self._double_click_callbacks = {}
225 self._plane_callback = []
226 self._z_axis_callback = []
227 self._active_exclusive = _NO_EXCLUSIVE_KEY
228
229 def bind(self, callback, key_binding):
230 """Binds a key combination to a callback.

Callers 4

__init__Method · 0.95
initializeMethod · 0.80
deinitializeMethod · 0.80

Calls

no outgoing calls

Tested by 1