Panels/InputTestingHud.razor
@using Sandbox;
@using Sandbox.UI;
@inherits PanelComponent

<root>
	<div class="panel">
		@if ( Input.UsingController )
		{
			<InputAnalogHint [email protected] @[email protected] @Text="Horizontal Look" />
			<InputAnalogHint [email protected] @[email protected] @Text="Vertical Look" />

			<InputAnalogHint [email protected] @[email protected] @Text="Horizontal Move" />
			<InputAnalogHint [email protected] @[email protected] @Text="Vertical Move" />
		}
		else
		{
			<InputHint [email protected] @Action="Forward" />
			<InputHint [email protected] @Action="Backward" />
			<InputHint [email protected] @Action="Left" />
			<InputHint [email protected] @Action="Right" />
		}

	</div>
	
	<div style="flex-grow: 1;" />

	<div class="panel row">
		<InputHint [email protected] @Action="Jump" />
	</div>

	<div style="flex-grow: 1;" />

	<div class="panel">
		<InputHint [email protected] @Action="Attack1" />
		<InputHint [email protected] @Action="Attack2" />
	</div>
</root>

@code
{
	/// <summary>
	/// the hash determines if the system should be rebuilt. If it changes, it will be rebuilt
	/// </summary>
	protected override int BuildHash() => System.HashCode.Combine(Input.UsingController);
	// protected override int BuildHash() => System.HashCode.Combine(Time.Now);
}