phil-opp / blog_os

Writing an OS in Rust
http://os.phil-opp.com
Apache License 2.0
15.85k stars 1.09k forks source link

Need help with keyboard input #1355

Open GBX9570 opened 3 weeks ago

GBX9570 commented 3 weeks ago

So the actual guide is fully completed, but I can't for the life of me work out how to get keyboard input. I have tried multiple things, such as picking apart the interrupt for it in interrupts.rs to get a hacked together keyboard input working - but to no avail.

So, how have other people done it? I wanna try and make a shell, but without a keyboard driver, I can't.

AtomicGamer9523 commented 3 weeks ago

Hey @GBX9570. I looked through your code. Take a look at your code, and the guide's code. Your driver is waking only in the case of an error, while the blog's is being waked whenever there is a new input. Maybe that is it?

GBX9570 commented 3 weeks ago

@AtomicGamer9523

Thanks for that, I'll check over the code tonight and see if I can fix it

I'll keep you updated here