1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:37:45 +00:00

LibKeyboard: Replace char data type to u32 for code point

This commit is contained in:
Hüseyin ASLITÜRK 2020-06-13 13:51:20 +03:00 committed by Andreas Kling
parent cfaed04464
commit 25e14911c5
5 changed files with 39 additions and 35 deletions

View file

@ -26,15 +26,17 @@
#pragma once
#include <AK/Types.h>
#define CHAR_MAP_SIZE 0x80
namespace Keyboard {
struct CharacterMapData {
char map[CHAR_MAP_SIZE];
char shift_map[CHAR_MAP_SIZE];
char alt_map[CHAR_MAP_SIZE];
char altgr_map[CHAR_MAP_SIZE];
u32 map[CHAR_MAP_SIZE];
u32 shift_map[CHAR_MAP_SIZE];
u32 alt_map[CHAR_MAP_SIZE];
u32 altgr_map[CHAR_MAP_SIZE];
};
// clang-format off