|
| ||||||||||
| Tags: directory, file, maincpp |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Keyboard events in c + +
Code: C + + 1 # include <SDL/SDL.h> Code: Console main.cpp: 11:21: SDL / SDL.h: No such file or directory |
|
#2
| ||||
| ||||
| Re: keyboard events in c + +
Windows Forms provides several options for programmatically simulating mouse and keyboard input.Qt has its own event management,, we must reimplement the methods like: Code: cout << "Press key any key move " << endl;
cin >> key;
cout << "You pressed name of key : " << key << endl;
system("PAUSE");
return 0; |
|
#3
| |||
| |||
| Re: keyboard events in c + + Code: void QCloseEvent (QCloseEvent * event)
(
QMessageBox:: information (this, "Closed", "Closing the program!");
event -> accept ();
) |
|
#4
| |||
| |||
| Re: keyboard events in c + +
You really should use third party libraries. There's definitely no platform-independent way to do it in ANSI C. Signal handling is not the way. Some C++ implementations reimplement the standard input stream seperatly from the C stdin stream. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Keyboard events in c + +" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| All day events one day out | Steadfast | Portable Devices | 4 | 13-10-2010 11:22 AM |
| Javascript Keyboard Events In Iframe | Henryosa | Software Development | 5 | 25-01-2010 01:04 PM |
| jQuery and several events | AZUL | Software Development | 3 | 28-09-2009 04:19 PM |
| How to set IIS httpmodule events | Rail racer | Software Development | 3 | 29-07-2009 03:38 PM |
| EVENTS RECEIVED | Deabelos | Windows XP Support | 5 | 22-09-2008 03:41 AM |