Begins a trigger with the given `duration`. */
| 187 | |
| 188 | /** Begins a trigger with the given `duration`. */ |
| 189 | void trigger(float duration = 1e-3f) { |
| 190 | // Keep the previous pulse if the existing pulse will be held longer than the currently requested one. |
| 191 | if (duration > remaining) { |
| 192 | remaining = duration; |
| 193 | } |
| 194 | } |
| 195 | }; |
| 196 | |
| 197 |
no outgoing calls
no test coverage detected