April 19, 2024, 10:00:00 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


How to detect the mouse button status?

Started by barry, August 23, 2007, 07:36:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

barry

In D3D in Auroroa how do you detect the mouse button status?  Button pressed or button down or button released?

Barry

Ionic Wind Support Team

You can:

1.  Use a handler, Override OnLButtonDown, OnLButtonUp in the C3DScreen class which is derived from CWindow so can handle all of the messages a normal window can.

2. Use GETKEYSTATE as in the frags example.  GETKEYSTATE(0x01) = left button, GETKEYSTATE(0x02) = right button, GETKEYSTATE(0x04) = middle button

3. Use the CDirectInput class.

Paul.
Ionic Wind Support Team