Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Is this interface supported?
I created a function block that implements IGestureEventHandler3, in the methods I have placed simple code to count how often the method is executed. I have done the same with the IHandleMouseEvent.
in my program I have the code:
VAR
GestureEvent : GestureHandler;
MouseEvent :MouseEvent;
xInit: BOOL := TRUE;
END_VAR
IF xInit THEN
xInit := FALSE;
VisuElems.VisuElemBase.g_VisuEventManager.SetGestureEventHandler(GestureEvent);
VisuElems.VisuElemBase.g_VisuEventManager.SetMouseEventHandler(MouseEvent);
END_IF
With this code the mouse events do increment the counters, the gesture events do not. Any ideas?
I can simply say that IGestureEventHandler3 is used.
Maybe your client is not sending any gestures?
Is multitouch active in the visu manager?
Is your client not supporting gestures?
Are there no areas defined where a gesture can occur?
I am using the Control Win 64 as the client, multitouch is activated. I am no sure what you mean by defined area for gestures. The main visu has a frame. Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Update, I found the multi touch example project and that got the flick working. From what I have seen Spread Pinch is not yet supported. Is this something that will be?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is this interface supported?
I created a function block that implements IGestureEventHandler3, in the methods I have placed simple code to count how often the method is executed. I have done the same with the IHandleMouseEvent.
in my program I have the code:
VAR
GestureEvent : GestureHandler;
MouseEvent :MouseEvent;
xInit: BOOL := TRUE;
END_VAR
IF xInit THEN
xInit := FALSE;
VisuElems.VisuElemBase.g_VisuEventManager.SetGestureEventHandler(GestureEvent);
VisuElems.VisuElemBase.g_VisuEventManager.SetMouseEventHandler(MouseEvent);
END_IF
With this code the mouse events do increment the counters, the gesture events do not. Any ideas?
Thanks
Hey jkopicz,
I can simply say that IGestureEventHandler3 is used.
Maybe your client is not sending any gestures?
Is multitouch active in the visu manager?
Is your client not supporting gestures?
Are there no areas defined where a gesture can occur?
Another small tip, use "Call after visu initialization" (see https://help.codesys.com/webapp/_visu_obj_manager;product=core_visualization;version=3.5.17.0) to register your event handler
Best regards,
Marcel
Marcel,
I am using the Control Win 64 as the client, multitouch is activated. I am no sure what you mean by defined area for gestures. The main visu has a frame. Thank you!
Update, I found the multi touch example project and that got the flick working. From what I have seen Spread Pinch is not yet supported. Is this something that will be?
Currently no plans to implemend spread pinch detection.
Right now we don't need them in any visualization elements.
Best regards,
Marcel