Skip to content

ADSR Class [for uiCustomComponent]: NEED 'OnMouseDown() Snap MouseXY to NodeXY': Any Ctrlr Hooks(or trix) for this? #624

Closed Answered by unityconstruct
unityconstruct asked this question in Q&A
Discussion options

You must be logged in to vote

@damiensellier .. I just added LMouseInputSource, built successfully and the object/method are now exposed to Ctrlr. Ctrlr might be lying & just mimicking what's in the wrapForLua setup, but about to find out. If it actually works, not sure if you are ok if I pull from CtrlrX, update & do PR. If not, I can just maintain it in my fork. THX for your responses above as they more or less led me to where I needed to be.

  • setScreenPosition() takes Point & looks like there's already LPoint, so hopeful its the same Point MIS wants.

LMouseInputSource Luabind Add

  • Source/lua/JuceClasses/LMouseInputSource.h
#ifndef L_MOUSE_INPUT_SOURCE
#define L_MOUSE_INPUT_SOURCE

extern  "C"
{
	#include "lua.h"
}

Replies: 11 comments 35 replies

Comment options

You must be logged in to vote
4 replies
@damiensellier
Comment options

@unityconstruct
Comment options

@unityconstruct
Comment options

@unityconstruct
Comment options

Comment options

You must be logged in to vote
2 replies
@unityconstruct
Comment options

@dnaldoog
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Ted-juh
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@unityconstruct
Comment options

@dnaldoog
Comment options

@unityconstruct
Comment options

Answer selected by unityconstruct
Comment options

You must be logged in to vote
1 reply
@damiensellier
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
15 replies
@damiensellier
Comment options

@Ted-juh
Comment options

@damiensellier
Comment options

@Ted-juh
Comment options

@unityconstruct
Comment options

Comment options

You must be logged in to vote
4 replies
@damiensellier
Comment options

@dnaldoog
Comment options

@unityconstruct
Comment options

@dnaldoog
Comment options

Comment options

You must be logged in to vote
5 replies
@dnaldoog
Comment options

@Ted-juh
Comment options

@dnaldoog
Comment options

@Ted-juh
Comment options

@unityconstruct
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants