> I want to build my own small frontend for MAME. But I don't know how to do
> non-blocking keyboard and mouse requests on Windows XP. I am an old Saurier who can
> only code in C, without classes and other high sophisticated things. To my time you
> used kbhit, getch and sleep. All of them gone now. Now we have Megabytes of DirectX,
> but how to use them.
Depends which way you're going. For a full-screen app like MAME itself, I strongly recommend using the SDL wrapper library (www.libsdl.org). It uses DirectX internally but presents a very easy to learn plain C API (and as a bonus programs written with it also can work unchanged on Linux and MacOSX).
If you're looking to do a windowed front end similar to MAME32 then you need the Petzold book. In English, that's "Programming Windows, Fifth Edition" by Charles Petzold, published by Microsoft Press. It is *the* Bible on plain-C Win32 programming.
Edited by R. Belmont (04/24/06 10:21 PM)
|