mirror of
https://github.com/BoredDevNL/BoredOS.git
synced 2026-05-15 10:48:38 +00:00
FEAT: Pass ctrl pressed through syscall
This commit is contained in:
parent
d8e680604c
commit
32a6bb4d72
1 changed files with 3 additions and 1 deletions
|
|
@ -19,6 +19,8 @@
|
|||
#include "font_manager.h"
|
||||
#include "graphics.h"
|
||||
|
||||
extern bool ps2_ctrl_pressed;
|
||||
|
||||
// Read MSR
|
||||
static inline uint64_t rdmsr(uint32_t msr) {
|
||||
uint32_t low, high;
|
||||
|
|
@ -107,7 +109,7 @@ void syscall_send_mouse_up_event(Window *win, int x, int y) {
|
|||
static void user_window_key(Window *win, char c, bool pressed) {
|
||||
process_t *proc = process_get_by_ui_window(win);
|
||||
if (!proc) return;
|
||||
gui_event_t ev = { .type = pressed ? GUI_EVENT_KEY : GUI_EVENT_KEYUP, .arg1 = (int)c };
|
||||
gui_event_t ev = { .type = pressed ? GUI_EVENT_KEY : GUI_EVENT_KEYUP, .arg1 = (int)c, .arg3 = (int)ps2_ctrl_pressed };
|
||||
process_push_gui_event(proc, &ev);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue