Hi list,
I've done another update to the proof of concept PR for Behaviors, this
time focusing a bit on allowing behavior extension. I added a
ToggleButtonBehavior that is an extension of a ButtonBaseBehavior. I
tweaked some generics to make this possible, and changed a few API's
slightly.
I've updated the proof of concept PR, and it has a number of changes to
allow more reuse of the behaviors handlers and key bindings. This has
resulted in the Behavior installation process to become a bit more
complex, but the actual use and the API's are still relatively simple.
For example,
Thanks for having a look!
On 30/11/2023 19:47, Andy Goryachev wrote:
I think BehaviorContext looks suspiciously like a (skin) input map, so
I would rather see that.
Invention of State class is a way to work around the stateless
behavior which, though it adds (in my opinion) very little, mig
I think BehaviorContext looks suspiciously like a (skin) input map, so I would
rather see that.
Invention of State class is a way to work around the stateless behavior which,
though it adds (in my opinion) very little, might still be a feature that app
developers want to exploit - at least in t