• Advertisement

Archived

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

Need DirectInput sample code for BCB

This topic is 5737 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement