Kernel: Remove obsolete KeyboardLayout/

This was used by the old input system. Currently keyboard layout is
hardcoded to finnish. But it will be reworked as something read from
the filesystem
This commit is contained in:
Bananymous 2023-03-29 03:09:14 +03:00
parent 7f88ba70d4
commit f4b4987d43
1 changed files with 0 additions and 433 deletions

View File

@ -1,433 +0,0 @@
#pragma once
#include <kernel/Input.h>
namespace Input
{
constexpr Key scan_code_to_key_extended[0xFF]
{
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::PreviousTrack,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::NextTrack,
Key::INVALID,
Key::INVALID,
Key::NumpadEnter,
Key::RightCtrl,
Key::INVALID,
Key::INVALID,
Key::Mute,
Key::Calculator,
Key::PlayPause,
Key::INVALID,
Key::Stop,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::VolumeDown,
Key::INVALID,
Key::VolumeUp,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::NumpadDiv,
Key::INVALID,
Key::INVALID,
Key::RightAlt,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::Home,
Key::Up,
Key::PageUp,
Key::INVALID,
Key::Left,
Key::INVALID,
Key::Right,
Key::INVALID,
Key::End,
Key::Down,
Key::PageDown,
Key::Insert,
Key::Delete,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::Super,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
Key::INVALID,
};
constexpr Key scan_code_to_key_altgr[0xFF]
{
Key::INVALID,
Key::Escape,
Key::None,
Key::At,
Key::Pound,
Key::Dollar,
Key::None,
Key::None,
Key::OpenBrace,
Key::OpenBracket,
Key::CloseBracket,
Key::CloseBrace,
Key::BackSlash,
Key::BackTick,
Key::Backspace,
Key::Tab,
Key::None,
Key::None,
Key::Euro,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::Tilde,
Key::Enter,
Key::LeftCtrl,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::LeftShift,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::RightShift,
Key::NumpadMult,
Key::LeftAlt,
Key::Space,
Key::CapsLock,
Key::F1,
Key::F2,
Key::F3,
Key::F4,
Key::F5,
Key::F6,
Key::F7,
Key::F8,
Key::F9,
Key::F10,
Key::NumLock,
Key::ScrollLock,
Key::Numpad7,
Key::Numpad8,
Key::Numpad9,
Key::NumpadMinus,
Key::Numpad4,
Key::Numpad5,
Key::Numpad6,
Key::NumpadPlus,
Key::Numpad1,
Key::Numpad2,
Key::Numpad3,
Key::Numpad0,
Key::NumpadSep,
Key::INVALID,
Key::INVALID,
Key::Pipe,
Key::F11,
Key::F12,
};
constexpr Key scan_code_to_key_shift[0xFF]
{
Key::INVALID,
Key::Escape,
Key::ExclamationMark,
Key::DoubleQuote,
Key::Hashtag,
Key::Currency,
Key::Percent,
Key::Ampersand,
Key::Slash,
Key::OpenParen,
Key::CloseParen,
Key::Equals,
Key::QuestionMark,
Key::BackTick,
Key::Backspace,
Key::Tab,
Key::Q,
Key::W,
Key::E,
Key::R,
Key::T,
Key::Y,
Key::U,
Key::I,
Key::O,
Key::P,
Key::A_Dot,
Key::Caret,
Key::Enter,
Key::LeftCtrl,
Key::A,
Key::S,
Key::D,
Key::F,
Key::G,
Key::H,
Key::J,
Key::K,
Key::L,
Key::O_Dots,
Key::A_Dots,
Key::Half,
Key::LeftShift,
Key::Asterix,
Key::Z,
Key::X,
Key::C,
Key::V,
Key::B,
Key::N,
Key::M,
Key::Semicolon,
Key::Colon,
Key::Underscore,
Key::RightShift,
Key::NumpadMult,
Key::LeftAlt,
Key::Space,
Key::CapsLock,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::None,
Key::NumLock,
Key::ScrollLock,
Key::Home,
Key::Up,
Key::PageUp,
Key::NumpadMinus,
Key::Left,
Key::None,
Key::Right,
Key::NumpadPlus,
Key::End,
Key::Down,
Key::PageDown,
Key::Insert,
Key::Delete,
Key::INVALID,
Key::INVALID,
Key::MoreThan,
Key::None,
Key::None,
};
constexpr Key scan_code_to_key_normal[0xFF]
{
Key::INVALID,
Key::Escape,
Key::_1,
Key::_2,
Key::_3,
Key::_4,
Key::_5,
Key::_6,
Key::_7,
Key::_8,
Key::_9,
Key::_0,
Key::Plus,
Key::Tick,
Key::Backspace,
Key::Tab,
Key::Q,
Key::W,
Key::E,
Key::R,
Key::T,
Key::Y,
Key::U,
Key::I,
Key::O,
Key::P,
Key::A_Dot,
Key::Caret,
Key::Enter,
Key::LeftCtrl,
Key::A,
Key::S,
Key::D,
Key::F,
Key::G,
Key::H,
Key::J,
Key::K,
Key::L,
Key::O_Dots,
Key::A_Dots,
Key::Section,
Key::LeftShift,
Key::SingleQuote,
Key::Z,
Key::X,
Key::C,
Key::V,
Key::B,
Key::N,
Key::M,
Key::Comma,
Key::Period,
Key::Hyphen,
Key::RightShift,
Key::NumpadMult,
Key::LeftAlt,
Key::Space,
Key::CapsLock,
Key::F1,
Key::F2,
Key::F3,
Key::F4,
Key::F5,
Key::F6,
Key::F7,
Key::F8,
Key::F9,
Key::F10,
Key::NumLock,
Key::ScrollLock,
Key::Numpad7,
Key::Numpad8,
Key::Numpad9,
Key::NumpadMinus,
Key::Numpad4,
Key::Numpad5,
Key::Numpad6,
Key::NumpadPlus,
Key::Numpad1,
Key::Numpad2,
Key::Numpad3,
Key::Numpad0,
Key::NumpadSep,
Key::INVALID,
Key::INVALID,
Key::LessThan,
Key::F11,
Key::F12,
};
}