LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2009, 10:50 PM   #1
minge.zu
LQ Newbie
 
Registered: Oct 2008
Location: Beijing
Posts: 17

Rep: Reputation: 0
Question capture keyboard event


Hi,everyone,
I want to capture keyboard event in my application.The detail is:

void my_kbd_ev_handler()
{
...
}

int main(void)
{

...
//register my handler for specified key event.
register_keyboard_event_cb(MY_INTERESTED_KEY_CODE,my_kbd_ev_handler);
...
}

as above,I want to know how to implement the function 'register_keyboard_event_cb',any advices are appreciated!
 
Old 09-22-2009, 07:34 PM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by minge.zu View Post
Hi,everyone,
I want to capture keyboard event in my application.The detail is:

void my_kbd_ev_handler()
{
...
}

int main(void)
{

...
//register my handler for specified key event.
register_keyboard_event_cb(MY_INTERESTED_KEY_CODE,my_kbd_ev_handler);
...
}

as above,I want to know how to implement the function 'register_keyboard_event_cb',any advices are appreciated!
The method depends on the language. You don't say what language you are programming in.

"The detail is: ..."

No. If you can't bring yourself to say what computer language you're using, you haven't provided details.
 
Old 09-22-2009, 08:21 PM   #3
minge.zu
LQ Newbie
 
Registered: Oct 2008
Location: Beijing
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lutusp View Post
The method depends on the language. You don't say what language you are programming in.

"The detail is: ..."

No. If you can't bring yourself to say what computer language you're using, you haven't provided details.
thank you.
I use C language.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Capturing Keystrokes in linux. APIs or System calls to capture keyboard strokes abhinav.zoso Programming 3 01-10-2009 11:14 AM
Looking for Joystick to Mouse Event Handler that supports Acceleration / Keyboard... fragged Linux - Software 0 08-06-2007 08:17 AM
Running a custom script on USB keyboard hotplug event arobinson74 Linux - Hardware 2 10-24-2006 02:42 PM
Key relese event on multimedia keyboard (scroll wheel) p8p Linux - Hardware 0 02-27-2005 06:13 AM
how to capture mouse and keyboard events programatically karthikeyan Programming 3 02-21-2003 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration