Table of Contents

Class HotkeyPressRouter

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

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

positions int

Positions 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)

Parameters

position int

The position whose key was sampled.

pressed bool

Whether its key is down this frame.

targetBar int

The bar a press starting now would land on.

pressedBar int

The bar that must activate this frame, or -1.

releasedBar int

The bar that must release this frame, or -1.