scummvm/scummvm — pull request #179 by tsoliman (2012-02-08 18:21:36+00:00)
Title: KEYMAPPER: Minor refactoring

This is a minor refactoring of keymapper and event code to allow the following short term goals:

1 - Allow override of global keymap to allow adding backend-specific actions.
It is debatable whether it should be an override or an extension of the global keymap.
Maybe it should just allow adding an extra global keymap.

2 - Allow code reuse when defining hardware keys for a platform backend.
LinuxMoto for example could benefit from this as it seems to be copy/pasting a lot of code.

3 - Adding 2 custom event types similar to what pull request #8 did.
This allows the keymapper to send events that are intended for the backend.

This is not the same effort to address the event/keymapper's inability to differentiate between a HardwareEvent and an ActionEvent. That is being handled separately.