davidcallanan / os-series

825 stars 121 forks source link

how do i read key presses from the c kernel? #77

Open Natejoestev opened 1 year ago

Natejoestev commented 1 year ago

i have a working c kernel implementation, and i want to know how to read key presses.

example: when the user presses f5 i want it to call another c function.

Florian-Mahlberg commented 1 year ago

Have a look at the OSdev Wiki.

Basically you want an interrupt handler and a driver for your keyboard. Good luck :p

Natejoestev commented 1 year ago

Thanks, i will look into that.

Natejoestev commented 1 year ago

how exactly would i implement that? i read through the article and the linked ones. i'm new to writing OSs and it doesn't make very much sense.

Florian-Mahlberg commented 1 year ago

You have smt like discord?