bind method

void bind(
  1. InputSource source,
  2. GameAction action
)

Points source at action, replacing whatever it did before.

Implementation

void bind(InputSource source, GameAction action) => _sources[source] = action;