Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 15-Nov-2014 13:59:47

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

is there a scol or os3d function to turn toggle mouse input on/off

Colleagues
Is there a way to toggle mouse input events to the 3d buffer on and off?
thx

Offline

#2 15-Nov-2014 14:43:31

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: is there a scol or os3d function to turn toggle mouse input on/off

If you set the mouse callback to nil, the mouse events will be ignored. Or your questions is other ?

Offline

#3 15-Nov-2014 15:53:35

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: is there a scol or os3d function to turn toggle mouse input on/off

iri wrote:

If you set the mouse callback to nil, the mouse events will be ignored. Or your questions is other ?


That's what I thought...although is there a way to turn it off for 3d buffer while allowing it for 2d obhcontainer ui.

The ultimate goal is to allow toggle on and off mouse and touch events on buffer, so a new user can use a visually self evident 2d control for 3d navigation, and then be able toggle swipe /mouse/keyboard events on buffer to navigate more accurately.

Offline

#4 15-Nov-2014 15:57:41

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: is there a scol or os3d function to turn toggle mouse input on/off

Right you answered my question... I think if I remove walk or fps input callbacks that will work by default

Offline

#5 15-Nov-2014 17:10:15

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: is there a scol or os3d function to turn toggle mouse input on/off

If a callback event is not set, this event will be ignored. Whatever the event.

Offline

#6 15-Nov-2014 17:28:28

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: is there a scol or os3d function to turn toggle mouse input on/off

iri wrote:

If a callback event is not set, this event will be ignored. Whatever the event.


I'm able to turn off the keyboard callbacks in a modified walkthrough plugit,  but it looks like the setEdwindowCbClick for the mainWindow is set elsewhere. I'll find it.

Last edited by hebdemnobad (15-Nov-2014 17:31:55)

Offline

#7 15-Nov-2014 17:43:32

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: is there a scol or os3d function to turn toggle mouse input on/off

to enable or disable mouse input on a 3d view:

V3DenableMouse	(	viewstr 	,
mode 	 
)		
Set a 3d view mouse state.

Prototype: fun [V3Dview I] I

Parameters
V3Dview	: the 3d view structure
I	: 1 to enable the mouse, 0 to disable
Returns
0

Offline

#8 15-Nov-2014 17:44:44

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: is there a scol or os3d function to turn toggle mouse input on/off

V3DenableMouse in os3dlib/v3dlib.pkg to activate / deactivate the mouse events.

Offline

#9 15-Nov-2014 17:46:33

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: is there a scol or os3d function to turn toggle mouse input on/off

hebdemnobad wrote:

to enable or disable mouse input on a 3d view:

V3DenableMouse	(	viewstr 	,
mode 	 
)		
Set a 3d view mouse state.

Prototype: fun [V3Dview I] I

Parameters
V3Dview	: the 3d view structure
I	: 1 to enable the mouse, 0 to disable
Returns
0

Well done

Offline

#10 15-Nov-2014 17:57:23

hebdemnobad
Member
From: northamerica
Registered: 20-Apr-2011
Posts: 1,477
Website

Re: is there a scol or os3d function to turn toggle mouse input on/off

iri wrote:
hebdemnobad wrote:

to enable or disable mouse input on a 3d view:

V3DenableMouse	(	viewstr 	,
mode 	 
)		
Set a 3d view mouse state.

Prototype: fun [V3Dview I] I

Parameters
V3Dview	: the 3d view structure
I	: 1 to enable the mouse, 0 to disable
Returns
0

Well done

arkeon built in an enable/disable  function into the multitouch fps plugit, so i think i'm all set to make a versatile touchscreen navigation ui (obvious widget or 2dui controls for new users who don't know what they are supposed to do, and more accurate control when the plugit is enabled by swiping all over the entire 3dview.)

Offline

Board footer

Powered by FluxBB