forked from Bananymous/banan-os
All: Cleanup all files
Add newline to end of files and remove whitespace from end of lines
This commit is contained in:
@@ -137,7 +137,7 @@ namespace Kernel::Input
|
||||
{
|
||||
dprintln("Invalid modifier instruction in keymap '{}'", line);
|
||||
dprintln(" format: include \"PATH\"");
|
||||
return BAN::Error::from_errno(EINVAL);
|
||||
return BAN::Error::from_errno(EINVAL);
|
||||
}
|
||||
parts[1] = parts[1].substring(1, parts[1].size() - 2);
|
||||
|
||||
|
||||
@@ -260,7 +260,7 @@ namespace Kernel::Input
|
||||
// Flush The Output Buffer
|
||||
while (!read_byte().is_error())
|
||||
continue;
|
||||
|
||||
|
||||
// Set the Controller Configuration Byte
|
||||
TRY(send_command(PS2::Command::READ_CONFIG));
|
||||
uint8_t config = TRY(read_byte());
|
||||
@@ -340,7 +340,7 @@ namespace Kernel::Input
|
||||
dwarnln("Could not reserve irq for PS/2 port 2");
|
||||
m_devices[1].clear();
|
||||
}
|
||||
|
||||
|
||||
if (!m_devices[0] && !m_devices[1])
|
||||
return {};
|
||||
|
||||
|
||||
@@ -126,6 +126,9 @@ namespace Kernel::Input
|
||||
|
||||
auto key = KeyboardLayout::get().get_key_from_event(KeyEvent { .modifier = 0, .keycode = keycode.value() });
|
||||
|
||||
if (key == Key::F1)
|
||||
panic("OOF");
|
||||
|
||||
uint16_t modifier_mask = 0;
|
||||
uint16_t toggle_mask = 0;
|
||||
switch (key)
|
||||
|
||||
@@ -133,7 +133,7 @@ namespace Kernel::Input
|
||||
{
|
||||
if ((new_button_mask & (1 << i)) == (m_button_mask & (1 << i)))
|
||||
continue;
|
||||
|
||||
|
||||
auto& event = events[event_count++];
|
||||
event.type = MouseEventType::MouseButtonEvent;
|
||||
event.button_event.button = button_index_to_button(i);
|
||||
|
||||
Reference in New Issue
Block a user