CharacterMapFile.h 436 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2020, Hüseyin Aslıtürk <asliturk@hotmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/JsonObject.h>
  8. #include <LibKeyboard/CharacterMapData.h>
  9. namespace Keyboard {
  10. class CharacterMapFile {
  11. public:
  12. static ErrorOr<CharacterMapData> load_from_file(ByteString const& filename);
  13. private:
  14. static Vector<u32> read_map(JsonObject const& json, ByteString const& name);
  15. };
  16. }