IonicWind Software

Aurora Compiler => 3D Graphics => Topic started by: barry on August 23, 2007, 07:36:26 AM

Title: How to detect the mouse button status?
Post by: barry on August 23, 2007, 07:36:26 AM
In D3D in Auroroa how do you detect the mouse button status?  Button pressed or button down or button released?

Barry
Title: Re: How to detect the mouse button status?
Post by: Ionic Wind Support Team on August 23, 2007, 08:56:51 AM
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.