Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Event descriptors list and Triggers#109

larry104 started this conversation inGeneral
Discussion options

It seems if you have a list of event desciptors e.g.

and you define a content trigger they both get converted into a single trigger instead of one trigger for each event name. Is there a workaround by predefining the content triggers?

You must be logged in to vote

Replies: 6 comments

Comment options

Hi, when all triggers have the same params, they will be treated as single

image

If you need separate triggers with the same event name, modify anything in params, for example set Max to 1, 2, 3

image

or change appearance

image

You must be logged in to vote
0 replies
Comment options

Thanks for the answer! In my case the triggers were different like key1Pressed, key2PPressed, etc. Is there a solution for that as well?

You must be logged in to vote
0 replies
Comment options

Share some screenshots, what you have at the moment and what do you want to achieve

You must be logged in to vote
0 replies
Comment options

Ideally the left and right should create the same triggers. IMO a combined trigger does not make sence since events are processed in a event queue so I assume there is no way that all 3 could get triggered simultaneously.

Even better would be that you could write key$Pressed and set min=1 and max=3 and it would be translated to the correct scxml statment
<transition event="key1Pressed key2Pressed key3Pressed"/>

scxml

You must be logged in to vote
0 replies
Comment options

We have special element calledTrigger for handling such things

image

machine_props.mp4

P.S. But I would like also to show how I use such things in Scxml

machine_props_2.mp4

image

You must be logged in to vote
0 replies
Comment options

Thanks a lot for the detailed explanation. I like that you can globally define triggers that is very useful. I admit your way of doing it is much more elegant!!! 

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
questionFurther information is requested
2 participants
@larry104@alexzhornyak
Converted from issue

This discussion was converted from issue#86 on September 06, 2023 09:08.


[8]ページ先頭

©2009-2026 Movatter.jp