Handle maps where 0x0 is a valid key

With OS-X / ADB keycodes 0x0 refers to key 'A', so cannot be
used as the default in the array. We must use 0xff instead and
thus explicitly fill every array entry with 0xff if no mapping
is available.

To handle this for enum based source maps, we need to use the
magic syntax

   [0 .... max] = value,

to set the default value in all elements, and then override
it afterwards for mappings which are known.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2 files changed
tree: 4af957d50eb55fdd0034b01b1d31942cc53c856e
  1. data/
  2. tests/
  3. tools/
  4. LICENSE.BSD
  5. LICENSE.GPL2
  6. README