LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 04-21-2007, 02:29 AM   #1
abhijeet
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
How to get key press and release events on kernel 2.6 for a application in C?


I need to find the time between the keypress and key release using a program in C. A utility called showkey can do that in the raw ,key and ascii mode.Ascii mode does not bother with the key release.A sample code will do good.
 
Old 04-22-2007, 04:03 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
GTK and Xlibs both contain routines which will let you do that, I believe. So there should be a way to do it without GUI toolkit as well.
 
Old 04-24-2007, 01:37 AM   #3
abhijeet
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I have tried to find out how to do it but still I have not been able to know how to do it.
 
  


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
c++ g++ wait for key press??? blizunt7 Programming 18 05-19-2014 12:09 PM
Key press Majestros Programming 2 02-14-2007 04:42 AM
Key press simulation in FC kiruxa Linux - General 1 11-24-2006 11:00 PM
Double key press on Keyboard Zettai Linux - Newbie 2 03-09-2005 11:59 PM
latest M$ press release? or just illiterate boob? bulliver General 11 12-11-2002 03:51 PM


All times are GMT -5. The time now is 11:10 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration