//------------------------------------------------------------------------------ // <auto-generated> // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.3.0 // from Assets/Scripts/Player/Player Controls.inputactions // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public partial class @PlayerControls : IInputActionCollection2, IDisposable { public InputActionAsset asset { get; } public @PlayerControls() { asset = InputActionAsset.FromJson(@"{ ""name"": ""Player Controls"", ""maps"": [ { ""name"": ""Player"", ""id"": ""7c30864b-477f-4611-91f8-274ae9d9bd72"", ""actions"": [ { ""name"": ""Open Pause Menu"", ""type"": ""Button"", ""id"": ""89686749-bc6b-491b-8001-466cee7f5fbc"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Drag Started"", ""type"": ""Button"", ""id"": ""82b6f3cb-c011-4ad1-b6e8-ca7048308687"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Drag Continued"", ""type"": ""Button"", ""id"": ""ed694fc6-751c-41fd-a9c9-00cd3b2ef43e"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Drag Ended"", ""type"": ""Button"", ""id"": ""6164708a-5219-486f-826f-67da526b37fa"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Music Play Next Track"", ""type"": ""Button"", ""id"": ""9142dc6b-09f9-4dec-985c-c3d4f0c838b0"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Music Pause/Unpause"", ""type"": ""Button"", ""id"": ""dc8ab483-b812-4774-95bd-e32e248bca7b"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Music Play Last Track"", ""type"": ""Button"", ""id"": ""6b3ed802-07cd-4af5-b6d8-d6047b49e521"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Zoom Out"", ""type"": ""Button"", ""id"": ""4a64dfa7-00ed-4e33-864a-4b746b7d0129"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Drag Canceled"", ""type"": ""Button"", ""id"": ""127c619e-8708-4009-83e8-4ff6b96f6f15"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Close Menu"", ""type"": ""Button"", ""id"": ""a4566780-d3c9-4c54-9d97-b4ef18ee94b1"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Open Unlocks Menu"", ""type"": ""Button"", ""id"": ""5cec0ac9-20de-46c3-9369-1119e49ee137"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Drag Continued - Joy"", ""type"": ""Value"", ""id"": ""c25f680b-4280-4f97-a4c0-5d8801c9680f"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Drag Ended - Joy"", ""type"": ""Value"", ""id"": ""e1ad704c-5371-4b88-8cbd-1b807859be74"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Drag Started - Joy"", ""type"": ""Value"", ""id"": ""1437dc06-389d-4ccd-b948-de73d5bd0a54"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Joystick Movement"", ""type"": ""Value"", ""id"": ""d0219001-f8b6-42da-802f-08875cf027f8"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Toggle Music Shuffle"", ""type"": ""Button"", ""id"": ""850d1e6a-f1c5-439d-b60d-0501c5458ba9"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Toggle Music Loop"", ""type"": ""Button"", ""id"": ""eb92cd3e-2288-47e8-80e4-11c7c4536710"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Launch Player"", ""type"": ""Button"", ""id"": ""f0c6d4e3-863e-4187-9b97-bb9aa1ade729"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""60510404-5026-40ea-99dc-c97597137fa4"", ""path"": ""<Keyboard>/escape"", ""interactions"": """", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Open Pause Menu"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""5cf3b820-9cc5-4a23-901d-1097c5a6f403"", ""path"": ""<Gamepad>/start"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Open Pause Menu"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""d0b8d37b-4dc2-44ba-8c9d-b2c9c9b84307"", ""path"": ""<Mouse>/leftButton"", ""interactions"": ""Press"", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Drag Started"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""a041d1a8-e934-45d5-97b6-1c4ee07459ec"", ""path"": ""<Mouse>/leftButton"", ""interactions"": ""Hold"", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Drag Continued"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""47ee0935-4db6-44ed-8c13-61e88915aa21"", ""path"": ""<Mouse>/leftButton"", ""interactions"": ""Press(behavior=1)"", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Drag Ended"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""a910ddbf-d9a6-4e38-bb74-d5e38c439ad3"", ""path"": ""<Keyboard>/c"", ""interactions"": """", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Music Play Next Track"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""4938a3be-eacf-4d1b-b4ac-4d595b7f4766"", ""path"": ""<Gamepad>/dpad/right"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Music Play Next Track"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ef66d3c4-7760-4584-a5fd-a23e951fb798"", ""path"": ""<Keyboard>/space"", ""interactions"": """", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Music Pause/Unpause"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""758c229c-30cd-452e-b1c8-9ba47d4097b2"", ""path"": ""<Gamepad>/dpad/down"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Music Pause/Unpause"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""30e834a9-32c4-4f61-b1e8-7920ce2091f7"", ""path"": ""<Keyboard>/x"", ""interactions"": """", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Music Play Last Track"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""455d136f-b71d-45a2-8e89-9814d0da2529"", ""path"": ""<Gamepad>/dpad/left"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Music Play Last Track"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""13b914e5-2dd9-4c60-8bae-e45b738f1448"", ""path"": ""<Keyboard>/f"", ""interactions"": """", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Zoom Out"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""a8e50870-e84c-4c42-9f9a-cf0c79bcf04a"", ""path"": ""<Gamepad>/dpad/up"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Zoom Out"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""f32cd803-dd9c-43aa-985c-aa39cd0b4a29"", ""path"": ""<Mouse>/rightButton"", ""interactions"": ""Press"", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Drag Canceled"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""844c7eb1-340b-4603-96fe-8fbc184f447f"", ""path"": ""<Gamepad>/buttonEast"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Close Menu"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""f8981e41-be6d-43c2-9bef-456252137d8a"", ""path"": ""<Keyboard>/backspace"", ""interactions"": """", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Close Menu"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""938465c6-e821-4a83-9f70-cce31e783705"", ""path"": ""<Gamepad>/select"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Open Unlocks Menu"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""2917a253-9f8f-4d95-8944-b5887db9b352"", ""path"": ""<Keyboard>/tab"", ""interactions"": """", ""processors"": """", ""groups"": ""Mouse & KB"", ""action"": ""Open Unlocks Menu"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ef3d592d-9568-4b8e-b65b-5a2ec63237df"", ""path"": ""<Gamepad>/leftStick"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Drag Continued - Joy"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""0e5652bc-629c-4877-bfa5-2b20f25903c3"", ""path"": ""<Gamepad>/leftStick"", ""interactions"": ""Press"", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Drag Started - Joy"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""8c49d922-a534-413d-8338-ef2be3b341af"", ""path"": ""<Gamepad>/leftStick"", ""interactions"": """", ""processors"": ""ScaleVector2(x=10,y=10)"", ""groups"": ""Gamepad"", ""action"": ""Joystick Movement"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""a015caa3-8c5c-4613-bf7a-df13e601e5f4"", ""path"": ""<Gamepad>/buttonWest"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Toggle Music Shuffle"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""fddf894e-141b-4d55-849b-5a415b9b17b2"", ""path"": ""<Gamepad>/buttonNorth"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Toggle Music Loop"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""e18565c3-ee70-431e-9d5e-2c6e74a7921a"", ""path"": ""<Gamepad>/rightTrigger"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Launch Player"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""3ee2edc1-eb62-4b27-98d2-1d8c054f91e1"", ""path"": ""<Gamepad>/leftStick"", ""interactions"": ""Press(behavior=1)"", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Drag Ended - Joy"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [ { ""name"": ""Mouse & KB"", ""bindingGroup"": ""Mouse & KB"", ""devices"": [ { ""devicePath"": ""<Mouse>"", ""isOptional"": false, ""isOR"": false }, { ""devicePath"": ""<Keyboard>"", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Gamepad"", ""bindingGroup"": ""Gamepad"", ""devices"": [ { ""devicePath"": ""<Gamepad>"", ""isOptional"": false, ""isOR"": false } ] } ] }"); // Player m_Player = asset.FindActionMap("Player", throwIfNotFound: true); m_Player_OpenPauseMenu = m_Player.FindAction("Open Pause Menu", throwIfNotFound: true); m_Player_DragStarted = m_Player.FindAction("Drag Started", throwIfNotFound: true); m_Player_DragContinued = m_Player.FindAction("Drag Continued", throwIfNotFound: true); m_Player_DragEnded = m_Player.FindAction("Drag Ended", throwIfNotFound: true); m_Player_MusicPlayNextTrack = m_Player.FindAction("Music Play Next Track", throwIfNotFound: true); m_Player_MusicPauseUnpause = m_Player.FindAction("Music Pause/Unpause", throwIfNotFound: true); m_Player_MusicPlayLastTrack = m_Player.FindAction("Music Play Last Track", throwIfNotFound: true); m_Player_ZoomOut = m_Player.FindAction("Zoom Out", throwIfNotFound: true); m_Player_DragCanceled = m_Player.FindAction("Drag Canceled", throwIfNotFound: true); m_Player_CloseMenu = m_Player.FindAction("Close Menu", throwIfNotFound: true); m_Player_OpenUnlocksMenu = m_Player.FindAction("Open Unlocks Menu", throwIfNotFound: true); m_Player_DragContinuedJoy = m_Player.FindAction("Drag Continued - Joy", throwIfNotFound: true); m_Player_DragEndedJoy = m_Player.FindAction("Drag Ended - Joy", throwIfNotFound: true); m_Player_DragStartedJoy = m_Player.FindAction("Drag Started - Joy", throwIfNotFound: true); m_Player_JoystickMovement = m_Player.FindAction("Joystick Movement", throwIfNotFound: true); m_Player_ToggleMusicShuffle = m_Player.FindAction("Toggle Music Shuffle", throwIfNotFound: true); m_Player_ToggleMusicLoop = m_Player.FindAction("Toggle Music Loop", throwIfNotFound: true); m_Player_LaunchPlayer = m_Player.FindAction("Launch Player", throwIfNotFound: true); } public void Dispose() { UnityEngine.Object.Destroy(asset); } public InputBinding? bindingMask { get => asset.bindingMask; set => asset.bindingMask = value; } public ReadOnlyArray<InputDevice>? devices { get => asset.devices; set => asset.devices = value; } public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes; public bool Contains(InputAction action) { return asset.Contains(action); } public IEnumerator<InputAction> GetEnumerator() { return asset.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public void Enable() { asset.Enable(); } public void Disable() { asset.Disable(); } public IEnumerable<InputBinding> bindings => asset.bindings; public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) { return asset.FindAction(actionNameOrId, throwIfNotFound); } public int FindBinding(InputBinding bindingMask, out InputAction action) { return asset.FindBinding(bindingMask, out action); } // Player private readonly InputActionMap m_Player; private IPlayerActions m_PlayerActionsCallbackInterface; private readonly InputAction m_Player_OpenPauseMenu; private readonly InputAction m_Player_DragStarted; private readonly InputAction m_Player_DragContinued; private readonly InputAction m_Player_DragEnded; private readonly InputAction m_Player_MusicPlayNextTrack; private readonly InputAction m_Player_MusicPauseUnpause; private readonly InputAction m_Player_MusicPlayLastTrack; private readonly InputAction m_Player_ZoomOut; private readonly InputAction m_Player_DragCanceled; private readonly InputAction m_Player_CloseMenu; private readonly InputAction m_Player_OpenUnlocksMenu; private readonly InputAction m_Player_DragContinuedJoy; private readonly InputAction m_Player_DragEndedJoy; private readonly InputAction m_Player_DragStartedJoy; private readonly InputAction m_Player_JoystickMovement; private readonly InputAction m_Player_ToggleMusicShuffle; private readonly InputAction m_Player_ToggleMusicLoop; private readonly InputAction m_Player_LaunchPlayer; public struct PlayerActions { private @PlayerControls m_Wrapper; public PlayerActions(@PlayerControls wrapper) { m_Wrapper = wrapper; } public InputAction @OpenPauseMenu => m_Wrapper.m_Player_OpenPauseMenu; public InputAction @DragStarted => m_Wrapper.m_Player_DragStarted; public InputAction @DragContinued => m_Wrapper.m_Player_DragContinued; public InputAction @DragEnded => m_Wrapper.m_Player_DragEnded; public InputAction @MusicPlayNextTrack => m_Wrapper.m_Player_MusicPlayNextTrack; public InputAction @MusicPauseUnpause => m_Wrapper.m_Player_MusicPauseUnpause; public InputAction @MusicPlayLastTrack => m_Wrapper.m_Player_MusicPlayLastTrack; public InputAction @ZoomOut => m_Wrapper.m_Player_ZoomOut; public InputAction @DragCanceled => m_Wrapper.m_Player_DragCanceled; public InputAction @CloseMenu => m_Wrapper.m_Player_CloseMenu; public InputAction @OpenUnlocksMenu => m_Wrapper.m_Player_OpenUnlocksMenu; public InputAction @DragContinuedJoy => m_Wrapper.m_Player_DragContinuedJoy; public InputAction @DragEndedJoy => m_Wrapper.m_Player_DragEndedJoy; public InputAction @DragStartedJoy => m_Wrapper.m_Player_DragStartedJoy; public InputAction @JoystickMovement => m_Wrapper.m_Player_JoystickMovement; public InputAction @ToggleMusicShuffle => m_Wrapper.m_Player_ToggleMusicShuffle; public InputAction @ToggleMusicLoop => m_Wrapper.m_Player_ToggleMusicLoop; public InputAction @LaunchPlayer => m_Wrapper.m_Player_LaunchPlayer; public InputActionMap Get() { return m_Wrapper.m_Player; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); } public void SetCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterface != null) { @OpenPauseMenu.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnOpenPauseMenu; @OpenPauseMenu.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnOpenPauseMenu; @OpenPauseMenu.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnOpenPauseMenu; @DragStarted.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragStarted; @DragStarted.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragStarted; @DragStarted.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragStarted; @DragContinued.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragContinued; @DragContinued.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragContinued; @DragContinued.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragContinued; @DragEnded.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragEnded; @DragEnded.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragEnded; @DragEnded.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragEnded; @MusicPlayNextTrack.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMusicPlayNextTrack; @MusicPlayNextTrack.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMusicPlayNextTrack; @MusicPlayNextTrack.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMusicPlayNextTrack; @MusicPauseUnpause.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMusicPauseUnpause; @MusicPauseUnpause.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMusicPauseUnpause; @MusicPauseUnpause.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMusicPauseUnpause; @MusicPlayLastTrack.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMusicPlayLastTrack; @MusicPlayLastTrack.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMusicPlayLastTrack; @MusicPlayLastTrack.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnMusicPlayLastTrack; @ZoomOut.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnZoomOut; @ZoomOut.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnZoomOut; @ZoomOut.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnZoomOut; @DragCanceled.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragCanceled; @DragCanceled.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragCanceled; @DragCanceled.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragCanceled; @CloseMenu.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCloseMenu; @CloseMenu.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCloseMenu; @CloseMenu.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnCloseMenu; @OpenUnlocksMenu.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnOpenUnlocksMenu; @OpenUnlocksMenu.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnOpenUnlocksMenu; @OpenUnlocksMenu.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnOpenUnlocksMenu; @DragContinuedJoy.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragContinuedJoy; @DragContinuedJoy.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragContinuedJoy; @DragContinuedJoy.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragContinuedJoy; @DragEndedJoy.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragEndedJoy; @DragEndedJoy.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragEndedJoy; @DragEndedJoy.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragEndedJoy; @DragStartedJoy.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragStartedJoy; @DragStartedJoy.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragStartedJoy; @DragStartedJoy.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnDragStartedJoy; @JoystickMovement.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJoystickMovement; @JoystickMovement.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJoystickMovement; @JoystickMovement.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnJoystickMovement; @ToggleMusicShuffle.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleMusicShuffle; @ToggleMusicShuffle.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleMusicShuffle; @ToggleMusicShuffle.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleMusicShuffle; @ToggleMusicLoop.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleMusicLoop; @ToggleMusicLoop.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleMusicLoop; @ToggleMusicLoop.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnToggleMusicLoop; @LaunchPlayer.started -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLaunchPlayer; @LaunchPlayer.performed -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLaunchPlayer; @LaunchPlayer.canceled -= m_Wrapper.m_PlayerActionsCallbackInterface.OnLaunchPlayer; } m_Wrapper.m_PlayerActionsCallbackInterface = instance; if (instance != null) { @OpenPauseMenu.started += instance.OnOpenPauseMenu; @OpenPauseMenu.performed += instance.OnOpenPauseMenu; @OpenPauseMenu.canceled += instance.OnOpenPauseMenu; @DragStarted.started += instance.OnDragStarted; @DragStarted.performed += instance.OnDragStarted; @DragStarted.canceled += instance.OnDragStarted; @DragContinued.started += instance.OnDragContinued; @DragContinued.performed += instance.OnDragContinued; @DragContinued.canceled += instance.OnDragContinued; @DragEnded.started += instance.OnDragEnded; @DragEnded.performed += instance.OnDragEnded; @DragEnded.canceled += instance.OnDragEnded; @MusicPlayNextTrack.started += instance.OnMusicPlayNextTrack; @MusicPlayNextTrack.performed += instance.OnMusicPlayNextTrack; @MusicPlayNextTrack.canceled += instance.OnMusicPlayNextTrack; @MusicPauseUnpause.started += instance.OnMusicPauseUnpause; @MusicPauseUnpause.performed += instance.OnMusicPauseUnpause; @MusicPauseUnpause.canceled += instance.OnMusicPauseUnpause; @MusicPlayLastTrack.started += instance.OnMusicPlayLastTrack; @MusicPlayLastTrack.performed += instance.OnMusicPlayLastTrack; @MusicPlayLastTrack.canceled += instance.OnMusicPlayLastTrack; @ZoomOut.started += instance.OnZoomOut; @ZoomOut.performed += instance.OnZoomOut; @ZoomOut.canceled += instance.OnZoomOut; @DragCanceled.started += instance.OnDragCanceled; @DragCanceled.performed += instance.OnDragCanceled; @DragCanceled.canceled += instance.OnDragCanceled; @CloseMenu.started += instance.OnCloseMenu; @CloseMenu.performed += instance.OnCloseMenu; @CloseMenu.canceled += instance.OnCloseMenu; @OpenUnlocksMenu.started += instance.OnOpenUnlocksMenu; @OpenUnlocksMenu.performed += instance.OnOpenUnlocksMenu; @OpenUnlocksMenu.canceled += instance.OnOpenUnlocksMenu; @DragContinuedJoy.started += instance.OnDragContinuedJoy; @DragContinuedJoy.performed += instance.OnDragContinuedJoy; @DragContinuedJoy.canceled += instance.OnDragContinuedJoy; @DragEndedJoy.started += instance.OnDragEndedJoy; @DragEndedJoy.performed += instance.OnDragEndedJoy; @DragEndedJoy.canceled += instance.OnDragEndedJoy; @DragStartedJoy.started += instance.OnDragStartedJoy; @DragStartedJoy.performed += instance.OnDragStartedJoy; @DragStartedJoy.canceled += instance.OnDragStartedJoy; @JoystickMovement.started += instance.OnJoystickMovement; @JoystickMovement.performed += instance.OnJoystickMovement; @JoystickMovement.canceled += instance.OnJoystickMovement; @ToggleMusicShuffle.started += instance.OnToggleMusicShuffle; @ToggleMusicShuffle.performed += instance.OnToggleMusicShuffle; @ToggleMusicShuffle.canceled += instance.OnToggleMusicShuffle; @ToggleMusicLoop.started += instance.OnToggleMusicLoop; @ToggleMusicLoop.performed += instance.OnToggleMusicLoop; @ToggleMusicLoop.canceled += instance.OnToggleMusicLoop; @LaunchPlayer.started += instance.OnLaunchPlayer; @LaunchPlayer.performed += instance.OnLaunchPlayer; @LaunchPlayer.canceled += instance.OnLaunchPlayer; } } } public PlayerActions @Player => new PlayerActions(this); private int m_MouseKBSchemeIndex = -1; public InputControlScheme MouseKBScheme { get { if (m_MouseKBSchemeIndex == -1) m_MouseKBSchemeIndex = asset.FindControlSchemeIndex("Mouse & KB"); return asset.controlSchemes[m_MouseKBSchemeIndex]; } } private int m_GamepadSchemeIndex = -1; public InputControlScheme GamepadScheme { get { if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad"); return asset.controlSchemes[m_GamepadSchemeIndex]; } } public interface IPlayerActions { void OnOpenPauseMenu(InputAction.CallbackContext context); void OnDragStarted(InputAction.CallbackContext context); void OnDragContinued(InputAction.CallbackContext context); void OnDragEnded(InputAction.CallbackContext context); void OnMusicPlayNextTrack(InputAction.CallbackContext context); void OnMusicPauseUnpause(InputAction.CallbackContext context); void OnMusicPlayLastTrack(InputAction.CallbackContext context); void OnZoomOut(InputAction.CallbackContext context); void OnDragCanceled(InputAction.CallbackContext context); void OnCloseMenu(InputAction.CallbackContext context); void OnOpenUnlocksMenu(InputAction.CallbackContext context); void OnDragContinuedJoy(InputAction.CallbackContext context); void OnDragEndedJoy(InputAction.CallbackContext context); void OnDragStartedJoy(InputAction.CallbackContext context); void OnJoystickMovement(InputAction.CallbackContext context); void OnToggleMusicShuffle(InputAction.CallbackContext context); void OnToggleMusicLoop(InputAction.CallbackContext context); void OnLaunchPlayer(InputAction.CallbackContext context); } }