I1DInput
Introduction
Code Example
using FlatRedBall.Input;
namespace ProjectName.Entities
{
public partial class Character
{
public I1DInput HorizontalInput
{
get;
set;
}
private void CustomInitialize()
{
}
private void CustomActivity()
{
// This would normally be a Glue variable, but added
// here to keep the example simpler
float movementSpeed = 100;
this.XVelocity = HorizontalInput.Value * movementSpeed;
}
private void CustomDestroy()
{
}
private static void CustomLoadStaticContent(string contentManagerName)
{
}
}
}Common Usage
Last updated
Was this helpful?