Luna/kernel/src/arch/Keyboard.h
apio de6fe7f7c2
All checks were successful
continuous-integration/drone/push Build is passing
kernel+libc+sh: Make the TTY device actually follow termios rules
Like, so much more termios compatibility!
2023-07-13 20:33:20 +02:00

17 lines
351 B
C++

#pragma once
#include <luna/Option.h>
namespace Keyboard
{
struct KeyboardState
{
bool ignore_next { false };
bool left_shift { false };
bool right_shift { false };
bool left_control { false };
bool capslock { false };
};
Option<char> decode_scancode_tty(u8 scancode, KeyboardState& state);
}