wanna know how I cn trap an arrow keypress event in C++
Printable View
wanna know how I cn trap an arrow keypress event in C++
Operating System?
Windowed or Console for that system?
Compiler?
Console...VC++
use getch()
If you want to do something game-like, VC++ is not good for this.
If you have a text menu where the user can select something, I don't know.
me planning 2 make a game in C++...to learn...dont hv any other compiler..using VC++....now it turns out... I cnt use the graphics fnxs....
why can't you use graphics?
Because they're trying to use the 16-bit gfx libraries with a 32-bit compiler, and obviously it won't work :p
If you want to do graphics under Windows, you need to learn one of three things:
GDI - slower, but works on everything and is the basis for most of the non-games type display.
OpenGL - very slow without hardware acceleration, but dead easy to program for.
DirectX - A total bastard to write, especially in C++. However sometimes it is faster than OGL in software mode.
That said, OpenGL blows DX out of the water with acceleration, and it also runs on SGI workstations :p