Controller.key_check

Controller.key_check(event, key_status, key_name)[source]

Giving the key name that is one of the supported keys, return if the key is pressed.

Parameters:
  • event (PySide2.QtGui.QMouseEvent) – The Qt event.

  • key_status (Dict) – The status dictionary that is like “key_status”: { “shift”: False, “control”: False, “alt”: False }.

  • key_name (str) – The name of the key. It should be exist in the list of supported keys.

Returns:

bool – If the key is pressed.