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
eventPySide2.QtGui.QMouseEvent

The Qt event.

key_statusDict

The status dictionary that is like “key_status”: { “shift”: False, “control”: False, “alt”: False }.

key_namestr

The name of the key. It should be exist in the list of supported keys.

Returns
bool

If the key is pressed.