|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Register a key handler that fires on the initial press and on every repeat, with a deterministic first event.
on_held already fires on the initial KEY_PRESSED and on each repeat, so this registers it alone; also registering on_press would count the initial press twice, since every listener on a key sees every event. One fire per physical press, a clean repeat cadence after.
| id | Element id to bind to. |
| key | The key to listen for. |
| fn | Callback receiving element id, fired once on press and again on each repeat tick. |
Definition at line 213 of file Context.cpp.
References on_held().
Referenced by MayaFlux::Portal::Forma::TextField::wire().
Here is the call graph for this function:
Here is the caller graph for this function: