mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibKeyboard: Replace char data type to u32 for code point
This commit is contained in:
parent
cfaed04464
commit
25e14911c5
Notes:
sideshowbarker
2024-07-19 05:37:46 +09:00
Author: https://github.com/asliturk
Commit: 25e14911c5
Pull-request: https://github.com/SerenityOS/serenity/pull/2541
5 changed files with 39 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue