Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: MouseDown Event  (Read 4168 times)

0 Members and 1 Guest are viewing this topic.

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
MouseDown Event
« 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 ;) )
« Last Edit: March 29, 2004, 04:41:18 PM by MMR »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:MouseDown Event
« Reply #1 on: March 29, 2004, 04:54:13 PM »

Why can't you use LeftClick and RightClick events? They work that way.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re:MouseDown Event
« Reply #2 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
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:MouseDown Event
« Reply #3 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re:MouseDown Event
« Reply #4 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.
Logged

Click here to sign my sig!
 

Page created in 0.028 seconds with 19 queries.