Table of Contents

Interface IInputSystem

Namespace
Framework.Systems.Input
Assembly
Assembly-CSharp.dll

의미 기반 입력 추상화 계약. Unity InputSystem 직접 의존 제거.

public interface IInputSystem

Examples

var move = _inputSystem.GetMove();
if (_inputSystem.GetActionDown(InputActionMap.Jump)) Jump();

Remarks

[금지] Game/Feature 코드에서 UnityEngine.Input 또는 Unity InputSystem 직접 참조. 액션 이름은 InputActionMap 상수 사용. 구현체: InputSystem.cs (KeyCode 바인딩 기반).

Methods

GetAction(string)

해당 액션이 현재 프레임에 눌려있는지.

bool GetAction(string actionName)

Parameters

actionName string

InputActionMap 상수 값.

Returns

bool

GetActionDown(string)

해당 액션이 이번 프레임에 처음 눌렸는지.

bool GetActionDown(string actionName)

Parameters

actionName string

InputActionMap 상수 값.

Returns

bool

GetActionUp(string)

해당 액션이 이번 프레임에 떼어졌는지.

bool GetActionUp(string actionName)

Parameters

actionName string

InputActionMap 상수 값.

Returns

bool

GetMove()

이동 방향 벡터. 정규화되지 않은 원시 값.

Vector2 GetMove()

Returns

Vector2

이동 입력 벡터 (x: 좌우, y: 앞뒤).