jQueryOS / AvocadOS

🖥 The revolutionary AvocadOS powered by jQuery
https://jQueryOS.github.io
10 stars 1 forks source link

Keyboard input is received really quickly #1

Open schas002 opened 8 years ago

schas002 commented 8 years ago

Note: this issue was already announced in chat. But we might as well fire it back up here.

After the output test, the next thing is the input test. But the keyboard input is received really quickly. By that I mean really really quickly. By that I mean badly quickly. Uh, whatever.

This was experienced on the avocados.iso as of commit 1b36a37d in Oracle VM VirtualBox 5.0.0.

schas002 commented 8 years ago

Right now it has no delay. That pretty much reveals the cause of the problem. Back to the drawing :boar:, I guess.

schas002 commented 8 years ago

Also, first issue! \o/

schas002 commented 8 years ago

Hmm, a possible solution can be to put in the while loop a sleep function.

schas002 commented 8 years ago

We don't have a sleep function. I'll discuss in chat.

somebody1234 commented 8 years ago

No, we need to implement interrupts. I'll work on this when I've finished building a self-hosted GCC.

schas002 commented 7 years ago

I found another possible solution: instead of implementing interrupts from scratch, we can send a typematic byte packet to the keyboard. send_keyboard(0xf3) I guess.