another question..

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
seingh
Posts: 11
Joined: Wed Apr 27, 2011 10:02 am

another question..

Post by seingh »

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 ^^
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: another question..

Post by neon »

Hello,

Just write those functions...you already know what you have to do (keyboard driver). Clicky.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
seingh
Posts: 11
Joined: Wed Apr 27, 2011 10:02 am

Re: another question..

Post by seingh »

neon wrote:Hello,

Just write those functions...you already know what you have to do (keyboard driver). Clicky.
thanks for the link ^^
Post Reply