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 InputDeviceChangedEvent

    Published via the Scylla Event eXchange System (SEX) when the most recently used input device changes, for example when a player switches from keyboard to a gamepad mid-session.

    Inheritance
    object
    ScyllaEvent
    InputDeviceChangedEvent
    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 InputDeviceChangedEvent : ScyllaEvent
    Remarks

    This event is driven by activity detection, not physical connection changes. It fires whenever the input system observes that a different device produced input more recently than the previously tracked device. It does not fire when a device is merely connected or disconnected without generating input.

    Subscribe via ScyllaEvents.Listen<InputDeviceChangedEvent>. For control-scheme-aware reactions (such as updating button-prompt icons), prefer subscribing to ControlSchemeChangedEvent instead, which maps device activity to high-level scheme categories.

    Properties

    CurrentDevice

    Gets or sets the Unity Input System device that is now the most recently used. This is the device whose activity triggered the event.

    Declaration
    public InputDevice CurrentDevice { get; set; }
    Property Value
    Type Description
    InputDevice

    CurrentDeviceType

    Gets or sets the Scylla-classified device type of CurrentDevice.

    Declaration
    public InputDeviceType CurrentDeviceType { get; set; }
    Property Value
    Type Description
    InputDeviceType

    PreviousDevice

    Gets or sets the Unity Input System device that was active before the switch, or null if no device was considered active at the time of the change.

    Declaration
    public InputDevice PreviousDevice { get; set; }
    Property Value
    Type Description
    InputDevice

    PreviousDeviceType

    Gets or sets the Scylla-classified device type of PreviousDevice. Will be Unknown when PreviousDevice is null.

    Declaration
    public InputDeviceType PreviousDeviceType { get; set; }
    Property Value
    Type Description
    InputDeviceType

    See Also

    ControlSchemeChangedEvent
    InputDeviceConnectedEvent
    InputDeviceDisconnectedEvent
    In this article
    Back to top Scylla Framework - Input Module API Documentation