2024-07-05 09:41:25 +00:00
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
2024-08-06 01:24:08 +00:00
// version 1.9.0
2024-07-05 09:41:25 +00:00
// from Assets/Plugins/Pixel Crushers/Dialogue System/Demo/Scenes/New Input System/DemoInputControls.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 ;
using UnityEngine ;
public partial class @DemoInputControls : IInputActionCollection2 , IDisposable
{
public InputActionAsset asset { get ; }
public @DemoInputControls ( )
{
asset = InputActionAsset . FromJson ( @ "{
"" name "" : "" DemoInputControls "" ,
"" maps "" : [
{
"" name "" : "" DemoActionMap "" ,
"" id "" : "" 41649 a10 - fe04 - 42d c - b834 - 7 b0e6b8f6f8e "" ,
"" actions "" : [
{
"" name "" : "" Horizontal "" ,
"" type "" : "" Button "" ,
"" id "" : "" ef3929c6 - b315 - 4851 - 8f 3 e - ae170992d312 "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Vertical "" ,
"" type "" : "" Button "" ,
"" id "" : "" 74 bfe387 - c2ec - 4 a2e - 9 b81 - cd1c81ee069b "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Fire1 "" ,
"" type "" : "" Button "" ,
"" id "" : "" 804 b48fe - 6035 - 4 b70 - a3b4 - 877f 04982d 7d "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
}
] ,
"" bindings "" : [
{
"" name "" : "" A - D "" ,
"" id "" : "" 988324e0 - d947 - 4f a7 - 825f - 8 c22a3d5a9cd "" ,
"" path "" : "" 1D Axis "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" negative "" ,
"" id "" : "" 096967 ca - ee92 - 45 be - 9f 93 - fc5e3a4f109d "" ,
"" path "" : "" < Keyboard > / a "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" positive "" ,
"" id "" : "" fbfca6ac - a78f - 40e1 - b53a - 27 a6570672c4 "" ,
"" path "" : "" < Keyboard > / d "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" Left - Right "" ,
"" id "" : "" 80 a8ea42 - 1404 - 4111 - b927 - 3d 3e018469d d "" ,
"" path "" : "" 1D Axis "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" negative "" ,
"" id "" : "" bd31e001 - 3 b16 - 4 b7e - 865 c - dc188bb61918 "" ,
"" path "" : "" < Keyboard > / leftArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" positive "" ,
"" id "" : "" 98d c1df3 - 8219 - 4687 - a480 - 47 c71a1953df "" ,
"" path "" : "" < Keyboard > / rightArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" S - W "" ,
"" id "" : "" 5f e719fc - bbc5 - 4091 - b418 - 91 c9a8699b54 "" ,
"" path "" : "" 1D Axis "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" negative "" ,
"" id "" : "" 5d 7 cca19 - 57 a8 - 4 a09 - ab88 - 7d cac3570e64 "" ,
"" path "" : "" < Keyboard > / s "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" positive "" ,
"" id "" : "" 6 a6517d3 - 50 c7 - 4 c54 - b86e - 4d ec04733436 "" ,
"" path "" : "" < Keyboard > / w "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" Down - Up "" ,
"" id "" : "" 8 ae87a3c - 1197 - 4725 - baf0 - 9 be8746497fb "" ,
"" path "" : "" 1D Axis "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" negative "" ,
"" id "" : "" 5f 943101 - e079 - 4 c5e - 93f 1 - 1602 b61d2418 "" ,
"" path "" : "" < Keyboard > / downArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" positive "" ,
"" id "" : "" 8322 cbd3 - 368e-43 ed - b41e - f7ce51f1f189 "" ,
"" path "" : "" < Keyboard > / upArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" "" ,
"" id "" : "" 6d e4a513 - 0301 - 4138 - 972 a - db7bccc7e316 "" ,
"" path "" : "" < Keyboard > / space "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Fire1 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" e5a158a9 - f419 - 43d c - 912d - 97f 01d 68 c681 "" ,
"" path "" : "" < Mouse > / leftButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Fire1 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
}
]
}
] ,
"" controlSchemes "" : [ ]
} ");
// DemoActionMap
m_DemoActionMap = asset . FindActionMap ( "DemoActionMap" , throwIfNotFound : true ) ;
m_DemoActionMap_Horizontal = m_DemoActionMap . FindAction ( "Horizontal" , throwIfNotFound : true ) ;
m_DemoActionMap_Vertical = m_DemoActionMap . FindAction ( "Vertical" , throwIfNotFound : true ) ;
m_DemoActionMap_Fire1 = m_DemoActionMap . FindAction ( "Fire1" , throwIfNotFound : true ) ;
}
~ @DemoInputControls ( )
{
Debug . Assert ( ! m_DemoActionMap . enabled , "This will cause a leak and performance issues, DemoInputControls.DemoActionMap.Disable() has not been called." ) ;
}
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 ) ;
}
// DemoActionMap
private readonly InputActionMap m_DemoActionMap ;
private List < IDemoActionMapActions > m_DemoActionMapActionsCallbackInterfaces = new List < IDemoActionMapActions > ( ) ;
private readonly InputAction m_DemoActionMap_Horizontal ;
private readonly InputAction m_DemoActionMap_Vertical ;
private readonly InputAction m_DemoActionMap_Fire1 ;
public struct DemoActionMapActions
{
private @DemoInputControls m_Wrapper ;
public DemoActionMapActions ( @DemoInputControls wrapper ) { m_Wrapper = wrapper ; }
public InputAction @Horizontal = > m_Wrapper . m_DemoActionMap_Horizontal ;
public InputAction @Vertical = > m_Wrapper . m_DemoActionMap_Vertical ;
public InputAction @Fire1 = > m_Wrapper . m_DemoActionMap_Fire1 ;
public InputActionMap Get ( ) { return m_Wrapper . m_DemoActionMap ; }
public void Enable ( ) { Get ( ) . Enable ( ) ; }
public void Disable ( ) { Get ( ) . Disable ( ) ; }
public bool enabled = > Get ( ) . enabled ;
public static implicit operator InputActionMap ( DemoActionMapActions set ) { return set . Get ( ) ; }
public void AddCallbacks ( IDemoActionMapActions instance )
{
if ( instance = = null | | m_Wrapper . m_DemoActionMapActionsCallbackInterfaces . Contains ( instance ) ) return ;
m_Wrapper . m_DemoActionMapActionsCallbackInterfaces . Add ( instance ) ;
@Horizontal . started + = instance . OnHorizontal ;
@Horizontal . performed + = instance . OnHorizontal ;
@Horizontal . canceled + = instance . OnHorizontal ;
@Vertical . started + = instance . OnVertical ;
@Vertical . performed + = instance . OnVertical ;
@Vertical . canceled + = instance . OnVertical ;
@Fire1 . started + = instance . OnFire1 ;
@Fire1 . performed + = instance . OnFire1 ;
@Fire1 . canceled + = instance . OnFire1 ;
}
private void UnregisterCallbacks ( IDemoActionMapActions instance )
{
@Horizontal . started - = instance . OnHorizontal ;
@Horizontal . performed - = instance . OnHorizontal ;
@Horizontal . canceled - = instance . OnHorizontal ;
@Vertical . started - = instance . OnVertical ;
@Vertical . performed - = instance . OnVertical ;
@Vertical . canceled - = instance . OnVertical ;
@Fire1 . started - = instance . OnFire1 ;
@Fire1 . performed - = instance . OnFire1 ;
@Fire1 . canceled - = instance . OnFire1 ;
}
public void RemoveCallbacks ( IDemoActionMapActions instance )
{
if ( m_Wrapper . m_DemoActionMapActionsCallbackInterfaces . Remove ( instance ) )
UnregisterCallbacks ( instance ) ;
}
public void SetCallbacks ( IDemoActionMapActions instance )
{
foreach ( var item in m_Wrapper . m_DemoActionMapActionsCallbackInterfaces )
UnregisterCallbacks ( item ) ;
m_Wrapper . m_DemoActionMapActionsCallbackInterfaces . Clear ( ) ;
AddCallbacks ( instance ) ;
}
}
public DemoActionMapActions @DemoActionMap = > new DemoActionMapActions ( this ) ;
public interface IDemoActionMapActions
{
void OnHorizontal ( InputAction . CallbackContext context ) ;
void OnVertical ( InputAction . CallbackContext context ) ;
void OnFire1 ( InputAction . CallbackContext context ) ;
}
}