InputActionChange.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. namespace UnityEngine.InputSystem
  2. {
  3. /// <summary>
  4. /// Indicates what type of change related to an <see cref="InputAction">input action</see> occurred.
  5. /// </summary>
  6. /// <seealso cref="InputSystem.onActionChange"/>
  7. public enum InputActionChange
  8. {
  9. /// <summary>
  10. /// An individual action was enabled.
  11. /// </summary>
  12. /// <seealso cref="InputAction.Enable"/>
  13. ActionEnabled,
  14. /// <summary>
  15. /// An individual action was disabled.
  16. /// </summary>
  17. /// <seealso cref="InputAction.Disable"/>
  18. ActionDisabled,
  19. /// <summary>
  20. /// An <see cref="InputActionMap">action map</see> was enabled.
  21. /// </summary>
  22. /// <seealso cref="InputActionMap.Enable"/>
  23. ActionMapEnabled,
  24. /// <summary>
  25. /// An <see cref="InputActionMap">action map</see> was disabled.
  26. /// </summary>
  27. /// <seealso cref="InputActionMap.Disable"/>
  28. ActionMapDisabled,
  29. /// <summary>
  30. /// An <see cref="InputAction"/> was started.
  31. /// </summary>
  32. /// <seealso cref="InputAction.started"/>
  33. /// <seealso cref="InputActionPhase.Started"/>
  34. ActionStarted,
  35. /// <summary>
  36. /// An <see cref="InputAction"/> was performed.
  37. /// </summary>
  38. /// <seealso cref="InputAction.performed"/>
  39. /// <seealso cref="InputActionPhase.Performed"/>
  40. ActionPerformed,
  41. /// <summary>
  42. /// An <see cref="InputAction"/> was canceled.
  43. /// </summary>
  44. /// <seealso cref="InputAction.canceled"/>
  45. /// <seealso cref="InputActionPhase.Canceled"/>
  46. ActionCanceled,
  47. /// <summary>
  48. /// Bindings on an action or set of actions are about to be re-resolved. This is called while <see cref="InputAction.controls"/>
  49. /// for actions are still untouched and thus still reflect the old binding state of each action.
  50. /// </summary>
  51. /// <seealso cref="InputAction.controls"/>
  52. BoundControlsAboutToChange,
  53. /// <summary>
  54. /// Bindings on an action or set of actions have been resolved. This is called after <see cref="InputAction.controls"/>
  55. /// have been updated.
  56. /// </summary>
  57. /// <seealso cref="InputAction.controls"/>
  58. BoundControlsChanged,
  59. }
  60. }