FixedUpdate Input System
null null Library update 2y ago

FixedUpdate Input System

Utility system for polling input reliably in FixedUpdate

favorite1favorites
thumb_up1upvotes
hard_drive 0 MB folder 7 files build Engine v17 history Last update 755d ago
open_in_new View on sbox.game

About This Package

FixedUpdate Input System

A utility System for polling input in an Update loop to use in a FixedUpdate loop without missing inputs in-between FixedUpdate ticks.


How to use it:

namespace Sandbox;

public sealed class ExampleComponent : Component
{
	private FixedUpdateInputSystem _fixedInput;

	protected override void OnStart()
	{
		// Get a reference to the system.
		_fixedInput = Scene.GetSystem<FixedUpdateInputSystem>();

		base.OnStart();
	}

	protected override void OnFixedUpdate()
	{
		// Query for input like normal.
		if ( _fixedInput.Pressed( "jump" ) )
		{
			Log.Info( "Jump" );
		}

		base.OnFixedUpdate();
	}
}

Media

No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
Package ID: null.fuib
Created: 2024-07-17 19:33 UTC
Updated: 2024-07-31 08:12 UTC
Type: library
Public: Yes
Version: 62303
files: 7
Size: 0.0 MB
Engine Version: 17
Asset Version ID: 62303
Version Created: 2024-07-31 08:12 UTC
Hash: 4299821904325888000
Manifest: Open manifest
Cs Proj Name:
Resources:
Code Package References:
new_releases Latest Update Jul 31, 2024
Changes on 2024-07-31
62303 Jul 31, 2024
Changes on 2024-07-31
60508 Jul 17, 2024
Changes on 2024-07-17
60506 Jul 17, 2024
Changes on 2024-07-17