Hello, i've another question ^^
How can I get the keyboard input in C?
I would like to have functions like: get_keyboard (int length) enable_keyboard (), disable_keyboard () and move_led (int led);
Which are respectively:
-get_keyboard () returns what the user presses where length is the maximum size of the string returned
-enable_keyboard () enables the keyboard
-disable_keyboard () disables the keyboard
-move_led () toggles the LEDs on the keyboard, 1 = caps lock, 2 = num lock, 3 = scroll lock
thx ^^
another question..
Re: another question..
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Re: another question..
thanks for the link ^^neon wrote:Hello,
Just write those functions...you already know what you have to do (keyboard driver). Clicky.