Class CursorInputSettings
- Namespace
- MoonBark.GridPlacement.Godot.Cursor
- Assembly
- MoonBark.GridPlacement.Godot.dll
Configures input action names and behavior for Cursor2D. Expose as a Godot.Resource in the inspector to tweak without code changes.
Default values match the Godot input map conventions used in demo scenes: cursor_up, cursor_down, cursor_left, cursor_right, cursor_confirm, cursor_cancel.
[ScriptPath("res://addons/grid_placement/cursor/CursorInputSettings.cs")]
public class CursorInputSettings : Resource, IDisposable
- Inheritance
-
GodotObjectRefCountedResourceCursorInputSettings
- Implements
- Inherited Members
-
Resource._GetRid()Resource._ResetState()Resource._SetupLocalToScene()Resource.GetRid()Resource.GetLocalScene()Resource.SetupLocalToScene()Resource.ResetState()Resource.IsBuiltIn()Resource.GenerateSceneUniqueId()Resource.EmitChanged()Resource.EmitSignalChanged()Resource.EmitSignalSetupLocalToSceneRequested()Resource.InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)Resource.HasGodotClassMethod(in godot_string_name)Resource.HasGodotClassSignal(in godot_string_name)Resource.ResourceLocalToSceneResource.ResourcePathResource.ResourceNameResource.ResourceSceneUniqueIdResource.ChangedResource.SetupLocalToSceneRequestedRefCounted.InitRef()RefCounted.Reference()RefCounted.Unreference()RefCounted.GetReferenceCount()GodotObject.NotificationPostinitializeGodotObject.NotificationPredeleteGodotObject.NotificationExtensionReloadedGodotObject.IsInstanceValid(GodotObject)GodotObject.WeakRef(GodotObject)GodotObject.Dispose()GodotObject.ToString()GodotObject.ToSignal(GodotObject, StringName)GodotObject._Get(StringName)GodotObject._GetPropertyList()GodotObject._IterGet(Variant)GodotObject._IterInit(Array)GodotObject._IterNext(Array)GodotObject._PropertyCanRevert(StringName)GodotObject._PropertyGetRevert(StringName)GodotObject._Set(StringName, Variant)GodotObject._ValidateProperty(Dictionary)GodotObject.Free()GodotObject.GetClass()GodotObject.Set(StringName, Variant)GodotObject.Get(StringName)GodotObject.SetIndexed(NodePath, Variant)GodotObject.GetIndexed(NodePath)GodotObject.GetPropertyList()GodotObject.GetMethodList()GodotObject.PropertyCanRevert(StringName)GodotObject.PropertyGetRevert(StringName)GodotObject.GetInstanceId()GodotObject.SetScript(Variant)GodotObject.GetScript()GodotObject.SetMeta(StringName, Variant)GodotObject.RemoveMeta(StringName)GodotObject.GetMeta(StringName, Variant)GodotObject.HasMeta(StringName)GodotObject.GetMetaList()GodotObject.HasUserSignal(StringName)GodotObject.RemoveUserSignal(StringName)GodotObject.EmitSignal(StringName, params Variant[])GodotObject.Call(StringName, params Variant[])GodotObject.CallDeferred(StringName, params Variant[])GodotObject.SetDeferred(StringName, Variant)GodotObject.Callv(StringName, Array)GodotObject.HasMethod(StringName)GodotObject.GetMethodArgumentCount(StringName)GodotObject.HasSignal(StringName)GodotObject.GetSignalList()GodotObject.GetSignalConnectionList(StringName)GodotObject.GetIncomingConnections()GodotObject.Disconnect(StringName, Callable)GodotObject.IsConnected(StringName, Callable)GodotObject.HasConnections(StringName)GodotObject.IsBlockingSignals()GodotObject.NotifyPropertyListChanged()GodotObject.CanTranslateMessages()GodotObject.Tr(StringName, StringName)GodotObject.GetTranslationDomain()GodotObject.SetTranslationDomain(StringName)GodotObject.IsQueuedForDeletion()GodotObject.CancelFree()GodotObject.EmitSignalScriptChanged()GodotObject.EmitSignalPropertyListChanged()GodotObject.NativeInstanceGodotObject.ScriptChangedGodotObject.PropertyListChanged
Properties
CancelAction
Input action name for canceling a placement (e.g. right-click or Escape).
[Export(PropertyHint.None, "")]
public StringName CancelAction { get; set; }
Property Value
- StringName
ConfirmAction
Input action name for confirming a placement (e.g. left-click or Enter).
[Export(PropertyHint.None, "")]
public StringName ConfirmAction { get; set; }
Property Value
- StringName
DownAction
Input action name for moving the cursor down.
[Export(PropertyHint.None, "")]
public StringName DownAction { get; set; }
Property Value
- StringName
EnableDirectionalInput
When true, the cursor can be moved using directional inputs (keyboard / controller).
[Export(PropertyHint.None, "")]
public bool EnableDirectionalInput { get; set; }
Property Value
EnableMouseInput
When true, the cursor position is driven by mouse input on the viewport.
[Export(PropertyHint.None, "")]
public bool EnableMouseInput { get; set; }
Property Value
InitialRepeatDelay
Seconds before the first repeat fires when holding a direction.
[Export(PropertyHint.None, "")]
public float InitialRepeatDelay { get; set; }
Property Value
LeftAction
Input action name for moving the cursor left.
[Export(PropertyHint.None, "")]
public StringName LeftAction { get; set; }
Property Value
- StringName
RepeatDelay
Seconds between repeated cursor moves when holding a direction.
[Export(PropertyHint.None, "")]
public float RepeatDelay { get; set; }
Property Value
RightAction
Input action name for moving the cursor right.
[Export(PropertyHint.None, "")]
public StringName RightAction { get; set; }
Property Value
- StringName
UpAction
Input action name for moving the cursor up.
[Export(PropertyHint.None, "")]
public StringName UpAction { get; set; }
Property Value
- StringName