mapKey method

void mapKey(
  1. String action,
  2. KeyboardKey key
)

Implementation

void mapKey(String action, KeyboardKey key) {
  _keyMap[action] = key.value;
  _keyDown[action] = false;
  _keyPressed[action] = false;
  _keyPressedRepeat[action] = false;
}