|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| Context & MayaFlux::Portal::Forma::Context::key_step | ( | uint32_t | id, |
| std::shared_ptr< MappedState< float > > | state, | ||
| IO::Keys | decrease, | ||
| IO::Keys | increase, | ||
| float | delta, | ||
| float | clamp_min = 0.0F, |
||
| float | clamp_max = 1.0F |
||
| ) |
Attach key-delta handlers to a Mapped<float> element.
Binds key handlers that adjust the element's state by a delta on each press/hold. The element must be focused (via mouse click) for keys to fire.
| id | Element id. |
| state | MappedState to adjust. |
| decrease | Key that decreases the value. |
| increase | Key that increases the value. |
| delta | Step size per key event. |
| clamp_min | Minimum clamped value (default 0.0F). |
| clamp_max | Maximum clamped value (default 1.0F). |
Definition at line 153 of file Context.cpp.
References on_held().
Here is the call graph for this function: