MARTIN Nicolas wrote:
> i have just discover spirit and I want to use it to manage user's
> interaction in an application.
> my first idea is to map all input device events into a stream and
> provide an iterator.
> Next, describe UI object's behavior with spirit.
> For example, a pointer could be define with the following rule :
> pointer_rule = *(mouse_move_p[&update_position] | mouse_clic_p[&select] );
> or to describe mouse gesture
> close_rule = down_p >> right_p;
> so, my overview of spirit's capabilities is limited, and I want to know
> if my idea is not too crazy?
I'll start by saying that I would never have thought of that
possibility. It definitely sounds crazy! ;)
Anyway, if you can serialize user input to a stream and provide
iterators into that stream, I guess you're all set to use Spirit to that
I also think that would make for a very nice (and creative) example of