Advertisement

MouseKeys

Started by October 02, 2000 10:16 AM
4 comments, last by davepermen 24 years, 3 months ago
I think I''m just stupid, but I don''t know how the get infos about my mousebuttons without the windowsmessageloop (HATE IT) so my question is, is there a function like GetAsyncKeyState() for the Mousebuttons?! we wanna play, not watch the pictures

If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud

Yeah, listen to the message WM_LMOUSEUBTTONDOWN in your main loop.
Like this:

...
case WM_LBUTTONDOWN:
{


} break;
...

And I guess the right mouse button is WM_RBUTTONDOWN



- Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction
Advertisement
hehe
in others words, No!

unless directInput has something like that...
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
SHIT -- it worked so fine until now without using the WndProc and DInput...

we wanna play, not watch the pictures

If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud

I have been using GetAsyncKeyState() with the virtual key parameter VK_LMOUSEBTN (or something similar, i cant quite remember) with no problems.
youre right!!! thanks a lot, really (i know doing it with dinput and with the WM_SHITMESSAGES, but I just dont wanted to, because asynckeystate is so easy)

the VK for the left button is VK_LBUTTON, for the right one VK_RBUTTON and the same way, the middle one VK_MBUTTON

we wanna play, not watch the pictures

If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud

This topic is closed to new replies.

Advertisement