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

Method __init__

dm_control/viewer/gui/glfw_gui.py:71–75  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

69 """
70
71 def __init__(self, context):
72 super().__init__()
73 with context.make_current() as ctx:
74 ctx.call(glfw.set_key_callback, context.window, self._handle_key_event)
75 self.on_key = util.QuietSet()
76
77 def _handle_key_event(self, window, key, scancode, activity, mods):
78 """Broadcasts the notification to registered listeners.

Callers

nothing calls this directly

Calls 3

make_currentMethod · 0.80
__init__Method · 0.45
callMethod · 0.45

Tested by

no test coverage detected