lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>From http://lua-users.org/files/wiki_insecure/users/MikePall/event.html

> ...
> Windows messages
>    Obviously allowing only QS_ALLINPUT is trivial (if all you want is to
call some message queue handler).
>    Allowing only single-bit selectors and mapping each of them to a single
event is simple, too.
>    But the semantics get pretty complicated if multi-bit selectors (such
as QS_INPUT)
>    need to be mapped to a single event.
> ...

You can provide named constants for single-bit selectors and, for the
advanced users, allow a bit mask (LUA_TNUMBER) as the "event source"
parameter of ev:add( ).

Bye,
Daniel