mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:37:47 +00:00
Revert "Kernel+Userland: Implement support for PS2 scan code set 2"
This reverts commit 61a385fc01
.
The commit broke the shift and caps lock key from working.
This commit is contained in:
parent
68b0826107
commit
d3025668a4
12 changed files with 440 additions and 982 deletions
|
@ -34,6 +34,8 @@ public:
|
|||
virtual ErrorOr<size_t> write(OpenFileDescription&, u64, UserOrKernelBuffer const&, size_t) override { return EINVAL; }
|
||||
virtual bool can_write(OpenFileDescription const&, u64) const override { return true; }
|
||||
|
||||
void handle_scan_code_input_event(ScanCodeEvent);
|
||||
|
||||
// ^File
|
||||
virtual ErrorOr<void> ioctl(OpenFileDescription&, unsigned request, Userspace<void*> arg) override;
|
||||
|
||||
|
@ -45,11 +47,6 @@ public:
|
|||
m_modifiers &= ~modifier;
|
||||
}
|
||||
|
||||
u8 modifiers() const { return m_modifiers; }
|
||||
|
||||
void handle_input_event(KeyEvent);
|
||||
bool num_lock_on() const { return m_num_lock_on; }
|
||||
|
||||
protected:
|
||||
KeyboardDevice();
|
||||
mutable Spinlock<LockRank::None> m_queue_lock {};
|
||||
|
@ -61,6 +58,10 @@ protected:
|
|||
bool m_caps_lock_to_ctrl_pressed { false };
|
||||
bool m_caps_lock_on { false };
|
||||
bool m_num_lock_on { false };
|
||||
bool m_left_shift_pressed { false };
|
||||
bool m_right_shift_pressed { false };
|
||||
bool m_left_super_pressed { false };
|
||||
bool m_right_super_pressed { false };
|
||||
|
||||
void key_state_changed(u8 raw, bool pressed);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue