2020-05-31 16:23:55 +03:00
|
|
|
|
/*
|
|
|
|
|
|
* Copyright (c) 2020, Hüseyin Aslıtürk <asliturk@hotmail.com>
|
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-05-31 16:23:55 +03:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include <AK/JsonObject.h>
|
|
|
|
|
|
#include <LibKeyboard/CharacterMapData.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Keyboard {
|
|
|
|
|
|
|
|
|
|
|
|
class CharacterMapFile {
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
2021-12-16 17:46:49 +01:00
|
|
|
|
static ErrorOr<CharacterMapData> load_from_file(const String& filename);
|
2020-05-31 16:23:55 +03:00
|
|
|
|
|
|
|
|
|
|
private:
|
2020-06-13 13:51:20 +03:00
|
|
|
|
static Vector<u32> read_map(const JsonObject& json, const String& name);
|
2020-05-31 16:23:55 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|