CharacterMapFile.h 429 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 Optional<CharacterMapData> load_from_file(const String& filename);
  13. private:
  14. static Vector<u32> read_map(const JsonObject& json, const String& name);
  15. };
  16. }