MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9713
Loc: ECV-197 The Orville
Send PM
Re: Accessing keyboard under WinXP
04/24/06 10:11 PM


> 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)







Entire thread
Subject Posted by Posted on
* Accessing keyboard under WinXP Bluescreen 04/23/06 07:49 PM
. * Re: Accessing keyboard under WinXP ikk  11/15/06 05:37 PM
. * Re: Accessing keyboard under WinXP R. Belmont  04/24/06 10:11 PM
. * Re: Accessing keyboard under WinXP twistyAdministrator  04/23/06 09:46 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 3 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3647