Skip to main content
gamedev.net
🔒 Locked

DirectInput ...

Started by Loginius Dec 4, 2000 at 10:30 AM 1 replies 700+ views
Original Post
Loginius
Loginius
Hello! I am looking for a demo or sample to understand the best way I should do the following task. I display a bitmap on the screen, and according where the user click, I will call other part of my program. What is the best way to do it using direct input. If I have a lot of zones on the screen that should do different things, what is the most efficient way? Any good samples? Demo?
CGI Joe
CGI Joe

Not quite sure I understand you but, isn''t it a simple of case of retrieving the X,Y coordinate of the last click and doing a loop through your zone rects until you find one which sits around the returned X,Y?

If you wanna know how to use DirectInput, the sdk DOCS have good tutorials that''ll get ye started.
"You say I''m a bitch like it''s a *bad* thing..."[email=alanetcetc@hotmail.com]Mail[/email] Site
Loginius
Loginius
Hello!

That is what I had in mind, but I was curious to see if some people had better ideas. Because this way, I will sure have a lot of cases...

Thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.