Jump to content

Recommended Posts

Posted

I am making my own gui with the 2d draw properties in LE, but i encountered a obstacle.

i can find the MouseDown and the MouseHit commands, but i cannot find the syntax for MouseUp/MouseClick/MouseDoubleClick commands.

 

does anyone know them?

"Hmm, don't have time to play with myself." ~Duke Nuke'm

Posted

AFAIK there is. You have to make it yourself. You can use a boolean for each mouse button (left/right) to do that. It's a pain I know. It would just be easier if LE did this. Unity does :)

Posted

thanks for the quick answer.

 

i think these commands should be implemented, they are essential.

off to the booleans for the left and right :)

"Hmm, don't have time to play with myself." ~Duke Nuke'm

Posted

Another approach would be to stick all input that occurred in, say, the last 250ms in a buffer and defer MouseClick/MouseDoubleClick from that.

 

I agree that having these commands in the engine would be a nice feature to have though.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...