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

Method _handle_button

dm_control/viewer/gui/glfw_gui.py:151–156  ·  view source on GitHub ↗

Mouse button click event handler.

(self, window, button, act, mods)

Source from the content-addressed store, hash-verified

149 self.add_event(self.on_move, position, delta)
150
151 def _handle_button(self, window, button, act, mods):
152 """Mouse button click event handler."""
153 del window
154 self.add_event(self.on_click, button, act, mods)
155 if self._double_click_detector.process(button, act):
156 self.add_event(self.on_double_click, button, mods)
157
158 def _handle_scroll(self, window, x_offset, y_offset):
159 """Mouse wheel scroll event handler."""

Callers 1

test_button_clickMethod · 0.80

Calls 2

add_eventMethod · 0.80
processMethod · 0.80

Tested by 1

test_button_clickMethod · 0.64