Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

directx directinput how to recognize mouse press on bitmap

Posted on 2010-11-18
1
Medium Priority
?
751 Views
Last Modified: 2012-08-14
Hello,
I have an application in VC++ and directx, I am doing the initialization and the main loop and I insert a bitmap, what I want is how to recognize when I press the mouse (only when is down left button) on the bitmap, and when the mouse is pressed to change the bitmap with another bitmap and when is released to revert back to the fitst bitmap (I thing direct input is the right api).

Thank you
Kyriakos
(I will provide code if necessary)
0
Comment
Question by:kyriakos70
1 Comment
 
LVL 12

Accepted Solution

by:
trinitrotoluene earned 2000 total points
ID: 34169965
Yes DirectInput is right. Here's a link to some info.

http://www.gamedev.net/reference/articles/article607.asp

Let me try to get more info out to you, in the meatime I suggest you post this query in the DirectX forum since this isn't a standard C++ related query
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question