(self, mouse, keyboard)
Instance initializer.

    Args:
      mouse: GlfwMouse instance.
      keyboard: GlfwKeyboard instance.
Instance initializer.
Instance initializer .
def __init__(self, mouse, keyboard):
    """Instance initializer.

    Args:
      mouse: GlfwMouse instance.
      keyboard: GlfwKeyboard instance.
    """
    self._keyboard = keyboard
    self._mouse = mouse

    self._keyboard.on_key += self._handle_key
    self._mouse.on_click += self._handle_key
    self._mouse.on_double_click += self._handle_double_click
    self._mouse.on_move += self._handle_mouse_move
    self._mouse.on_scroll += self._handle_mouse_scroll

    self.clear_bindings()
def __init__ ( self , mouse , keyboard ) : self . _keyboard = keyboard self . _mouse = mouse self . _keyboard . on_key += self . _handle_key self . _mouse . on_click += self . _handle_key self . _mouse . on_double_click += self . _handle_double_click self . _mouse . on_move += self . _handle_mouse_move self . _mouse . on_scroll += self . _handle_mouse_scroll self . clear_bindings ( )