os-series icon indicating copy to clipboard operation
os-series copied to clipboard

how do i read key presses from the c kernel?

Open Natejoestev opened this issue 1 year ago • 4 comments

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.

Natejoestev avatar Mar 26 '23 20:03 Natejoestev

Have a look at the OSdev Wiki.

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

Florian-Mahlberg avatar Sep 02 '23 17:09 Florian-Mahlberg

Thanks, i will look into that.

Natejoestev avatar Sep 03 '23 03:09 Natejoestev

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.

Natejoestev avatar Sep 03 '23 04:09 Natejoestev

You have smt like discord?

Florian-Mahlberg avatar Sep 03 '23 07:09 Florian-Mahlberg