Wintermute Engine Forum

Wintermute Engine => Feature requests, suggestions => Topic started by: MMR on March 29, 2004, 04:40:36 PM

Title: MouseDown Event
Post by: MMR on March 29, 2004, 04:40:36 PM
Will be very useful for Drag&Drop.

I'm trying to do something like this: When I MouseDown over a coin, and move the mouse, the coin moves with the mouse. If I release the mouse, the coin stays there.

The only problem is, there is no MouseDown event :(

P.S: (For Left & Right buttons ;) )
Title: Re:MouseDown Event
Post by: Mnemonic on March 29, 2004, 04:54:13 PM
Why can't you use LeftClick and RightClick events? They work that way.
Title: Re:MouseDown Event
Post by: MMR on March 29, 2004, 07:04:53 PM
Well, I want to difference between Click and only MouseDown, but if it's hard to implement, forget it, I think I can use the Click  ;D
Title: Re:MouseDown Event
Post by: Mnemonic on March 29, 2004, 08:04:02 PM
Oh, I see :) Well, the Click event is actually "MouseDown", it's triggered without releasing the button.
Title: Re:MouseDown Event
Post by: McCoy on March 29, 2004, 08:19:32 PM
Yep, it's not that difficult to do trough scripting, in fact, I managed to do the actions interface and the vertical scroll bar of Fred with that behaviour (for the interface, if you right-hold the button, the menu pops up, and until you don't release the button it doesn't disappear, and for the vertical scroll bar, it follows the mouse while the left mouse button is pressed), so just check my code if you want, and you'll see it's not difficult at all.