tag:blogger.com,1999:blog-5725016407743583511.post5818869238900094616..comments2023-10-26T07:47:30.426-07:00Comments on Sukesh Balachandrans blog: Implementing Mouse in Turbo cSukesh B Rhttp://www.blogger.com/profile/07439990768779619750noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5725016407743583511.post-88482651249756060942014-10-11T17:32:19.994-07:002014-10-11T17:32:19.994-07:00As far as i know, threading doesn't work in c+...As far as i know, threading doesn't work in c++ :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5725016407743583511.post-64518679551242853972012-05-24T09:13:43.394-07:002012-05-24T09:13:43.394-07:00To get keyboard output use getch() like this:-
in...To get keyboard output use getch() like this:- <br />include c=getch(); just belove the }while(!kbhit()); statement.the kbhit() function is <br />searching for keypress.when a key is pressed the loop will terminate.The pressed key<br />can be retrieve using c=getch(). getch() returns the ascii value of the key pressed.So<br />c get the ascii value like 13 for enter 27 for escape etc.<br /> For read more input from keyboard make the mouse handling loop as a thread.It will<br />work for you.Sukesh B Rhttps://www.blogger.com/profile/07439990768779619750noreply@blogger.comtag:blogger.com,1999:blog-5725016407743583511.post-63044486156440664632012-05-19T01:54:29.527-07:002012-05-19T01:54:29.527-07:00I m using this mouse programming for a long time. ...I m using this mouse programming for a long time. I want to know what it do in background and how to get input from keyboard in the loop.<br />Please mail me at gourav1607@gmail.com<br />thanks in advance.GOURAV SIDDHADhttps://www.blogger.com/profile/11719580695293283718noreply@blogger.com