davidcallanan / os-series

803 stars 118 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 10 months 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 10 months ago

Thanks, i will look into that.

Natejoestev commented 10 months 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 10 months ago

You have smt like discord?