Controller.mouse_check
- Controller.mouse_check(event, button_name)[source]
Giving the button name that is one of the supported buttons, return if the button is pressed.
- Parameters:
event (PySide2.QtGui.QMouseEvent) – The Qt event.
button_name (str) – The name of the button. It should be exist in the list of supported buttons.
- Returns:
bool – If the button is pressed.