Added mouse kernel driver, and /devices/mouse for userspace programs.
Now we get mouse events.
Weird issue
So, I'm developing in qemu with 2 monitors.
For some reason, when the qemu window in the second monitor, the "move" events aren't generated from the mouse.
So I have to always use the first monitor.
Not sure what that this about, I'll see if this is a bug and report/fix it maybe.
Related issue
Fixes #48
Changes
Added mouse driver in the kernel
Added /devices/mouse virtual device for userspace access
Added a small debug program in userspace that uses the above to print the mouse events
Checklist
[x] The changes are tested and works as expected (mention if not)
Summary
Added mouse kernel driver, and
/devices/mouse
for userspace programs. Now we get mouse events.Weird issue
So, I'm developing in qemu with 2 monitors.
For some reason, when the qemu window in the second monitor, the "move" events aren't generated from the mouse. So I have to always use the first monitor.
Not sure what that this about, I'll see if this is a bug and report/fix it maybe.
Related issue
Fixes #48
Changes
/devices/mouse
virtual device for userspace accessChecklist