Scylla Framework
  • API Reference
Search Results for

    Show / Hide Table of Contents
    • Scylla.Input
      • AutoResolveChange
      • AutoResolveResult
      • BindingConflict
      • BindingStorageSettings
      • BindingStorageType
      • BridgeSettings
      • BufferedInput
      • ConfigActionEntry
      • ConfigBindingEntry
      • ConfigConflict
      • ConfigSchemeGroup
      • ContextValidationMessage
      • ContextValidationSeverity
      • ControlScheme
      • ControlSchemeChangedEvent
      • ControlSchemeManager
      • ControlSchemeType
      • GamepadButton
      • GamepadType
      • IBindingStorage
      • IControlSchemeManager
      • IInputActionManager
      • IInputBindingManager
      • IInputBridgeManager
      • IInputBufferManager
      • IInputContextManager
      • IInputHintsManager
      • IInputListener
      • IScyllaInputBridge
      • InputActionCanceledEvent
      • InputActionManager
      • InputActionPerformedEvent
      • InputActionStartedEvent
      • InputBindingManager
      • InputBindingsLoadedEvent
      • InputBindingsSavedEvent
      • InputBridgeManager
      • InputBridgeQueryMode
      • InputBufferConsumedEvent
      • InputBufferManager
      • InputBufferedEvent
      • InputConflictResolution
      • InputContext
      • InputContextChangedEvent
      • InputContextDefinition
      • InputContextManager
      • InputContextPoppedEvent
      • InputContextPushedEvent
      • InputDeviceChangedEvent
      • InputDeviceConnectedEvent
      • InputDeviceDisconnectedEvent
      • InputDeviceType
      • InputDeviceUtil
      • InputDisabledEvent
      • InputEnabledEvent
      • InputEventType
      • InputHint
      • InputHintChangedEvent
      • InputHintsManager
      • InputIconSet
      • InputIconSet.IconMapping
      • InputIconSetChangedEvent
      • InputLoggingSettings
      • InputRebindCancelledEvent
      • InputRebindCompletedEvent
      • InputRebindManager
      • InputRebindOperation
      • InputRebindStartedEvent
      • InputRebindUtils
      • JSONFileBindingStorage
      • ManagedRebindCancelledEvent
      • ManagedRebindCompletedEvent
      • ManagedRebindDataRefreshedEvent
      • ManagedRebindStartedEvent
      • PlayerPrefsBindingStorage
      • RebindMode
      • RebindSettings
      • ScyllaInput
      • ScyllaInput.Meta
      • ScyllaInputAction
      • ScyllaInputActionMap
      • ScyllaInputBinding
      • ScyllaInputConfiguration
      • ScyllaInputContextConfiguration
      • ScyllaKey
      • ScyllaKeyConverter
      • ScyllaModifier
      • UnityInputSystemBridge
    • Scylla.Input.Editor
      • ControlSchemeDrawer
      • DeviceStatusWidget
      • IconMappingDrawer
      • InputIconSetEditor
      • ScyllaInputConfigurationEditor
      • ScyllaInputContextConfigurationEditor
      • ScyllaInputDependencyProvider
      • ScyllaInputEditor
      • ScyllaInputMenuItems
      • ScyllaInputWizard

    Class InputContextChangedEvent

    Published via the Scylla Event eXchange System (SEX) whenever the top of the input context stack changes, either because a context was pushed or popped, making a different context the active one.

    Inheritance
    object
    ScyllaEvent
    InputContextChangedEvent
    Inherited Members
    ScyllaEvent.IsCancelled
    ScyllaEvent.StopPropagation()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Scylla.Input
    Assembly: ScyllaInput.dll
    Syntax
    public class InputContextChangedEvent : ScyllaEvent
    Remarks

    This event summarizes the net result of a push or pop operation. Both the previous and current context objects are provided so subscribers can react to the change without needing to query the context manager separately.

    When a new context is pushed on top of an existing one, PreviousContext is the context that was previously on top and CurrentContext is the newly activated one. When a context is popped, the values are reversed. Either value can be null if the stack was empty before or after the operation.

    Subscribe via ScyllaEvents.Listen<InputContextChangedEvent>. For finer-grained tracking of individual push and pop operations, subscribe to InputContextPushedEvent and InputContextPoppedEvent respectively.

    Constructors

    InputContextChangedEvent(string, string, InputContext, InputContext)

    Initializes a new InputContextChangedEvent with the context state before and after the change.

    Declaration
    public InputContextChangedEvent(string previousContextID, string currentContextID, InputContext previousContext, InputContext currentContext)
    Parameters
    Type Name Description
    string previousContextID

    The ID of the context that was active before the change, or null if no context was active (empty stack).

    string currentContextID

    The ID of the context that is now active (top of stack), or null if the stack is now empty.

    InputContext previousContext

    The InputContext object that was active before the change, or null if no context was active.

    InputContext currentContext

    The InputContext object that is now active, or null if the context stack is now empty.

    Properties

    CurrentContext

    Gets the InputContext object that is now active, or null if the context stack is now empty.

    Declaration
    public InputContext CurrentContext { get; }
    Property Value
    Type Description
    InputContext

    CurrentContextID

    Gets the ID of the context that is now active (top of stack), or null if the context stack is now empty.

    Declaration
    public string CurrentContextID { get; }
    Property Value
    Type Description
    string

    PreviousContext

    Gets the InputContext object that was active before the change, or null if no context was active.

    Declaration
    public InputContext PreviousContext { get; }
    Property Value
    Type Description
    InputContext

    PreviousContextID

    Gets the ID of the context that was active before the change, or null if no context was active (empty stack).

    Declaration
    public string PreviousContextID { get; }
    Property Value
    Type Description
    string

    See Also

    InputContextPushedEvent
    InputContextPoppedEvent
    InputContext
    In this article
    Back to top Scylla Framework - Input Module API Documentation