LibInput: Mark KeyboardLayout::key_event_from_raw const
This commit is contained in:
@@ -77,7 +77,7 @@ namespace LibInput
|
|||||||
key = Key::None;
|
key = Key::None;
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyEvent KeyboardLayout::key_event_from_raw(RawKeyEvent event)
|
KeyEvent KeyboardLayout::key_event_from_raw(RawKeyEvent event) const
|
||||||
{
|
{
|
||||||
KeyEvent result;
|
KeyEvent result;
|
||||||
result.modifier = event.modifier;
|
result.modifier = event.modifier;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace LibInput
|
|||||||
static BAN::ErrorOr<void> initialize();
|
static BAN::ErrorOr<void> initialize();
|
||||||
static KeyboardLayout& get();
|
static KeyboardLayout& get();
|
||||||
|
|
||||||
KeyEvent key_event_from_raw(RawKeyEvent);
|
KeyEvent key_event_from_raw(RawKeyEvent) const;
|
||||||
BAN::ErrorOr<void> load_from_file(BAN::StringView path);
|
BAN::ErrorOr<void> load_from_file(BAN::StringView path);
|
||||||
|
|
||||||
BAN::Span<const Key> keymap_normal() const { return m_keycode_to_key_normal.span(); }
|
BAN::Span<const Key> keymap_normal() const { return m_keycode_to_key_normal.span(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user