Class HotkeyPressRouter
Pairs every position key's press with its release on the SAME bar.
public sealed class HotkeyPressRouter
- Inheritance
-
HotkeyPressRouter
- Inherited Members
Remarks
The bar is decided once, at the press, and remembered until the key comes up. Without that, letting go of Ctrl before letting go of 1 would release the first bar's slot — which never started anything — and leave the second bar's charged ability held until its hold cap cancelled it; and pressing Ctrl while 1 is already down would move a press that is still in progress onto a different ability.
Constructors
HotkeyPressRouter(int)
Creates a router for a bar width.
public HotkeyPressRouter(int positions)
Parameters
positionsintPositions on each bar.
Methods
Reset()
Forgets every press in progress, without releasing anything.
public void Reset()
Step(int, bool, int, out int, out int)
Advances one position key by one frame.
public void Step(int position, bool pressed, int targetBar, out int pressedBar, out int releasedBar)