Archived

This topic is now archived and is closed to further replies.

Leviathan569

Need DirectInput sample code for BCB

Recommended Posts

Hi evrybody, Does anybody have some DirectInput sample code for Borland C++ Builder? I''ve been trying for a week now to initialize the keyboard, but it just doesn''t work. I''m not going to bother you guys with what goes wrong because I posted it to a few newsgroups and nobody seems to know the right answer. I hope somebody has working BCB code that I can have. ------------------------ leviathan569@hotmail.com ------------------------

Share this post


Link to post
Share on other sites
I have written a component you can have.

It auto initializes itself and you just need to do this to check if a key is pressed.

if (Keyboard1->Compare(DIK_UP))
//do something interesting

Neil

WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

Share this post


Link to post
Share on other sites