> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-ko/build-for-mobile/develop/input-on-mobile.md).

# 모바일 입력

입력 동작이 Decentraland 모바일 클라이언트의 터치와 어떻게 매핑되는지.

Decentraland의 입력 시스템은 기기에 구애받지 않도록 설계되었습니다. SDK에서 데스크톱용으로 제공하는 동일한  `InputAction`  열거형이 모바일의 화면 컨트롤에서도 전달되므로 대부분의 씬은 수정 없이 작동합니다. 다만 터치용으로 빌드할 때 알아두면 좋은 몇 가지 규칙과 주의 사항이 있습니다.

전체 입력 모델은  [클릭 이벤트](https://docs.decentraland.org/creator/content-creator-ko/sdk7/interactivity/button-events/click-events.md)를 참조하세요. 이 페이지에서는 모바일에만 해당하는 내용을 다룹니다.

<figure><img src="https://3980763956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-3f9b9411cb70df33cba905d3a560fb1bb7ceb258%2Ffull-input.webp?alt=media" alt="The on-screen controls with the + menu expanded, showing every input button"><figcaption><p>"+" 메뉴를 펼친 화면 컨트롤 — 모든 입력 동작이 표시된 상태</p></figcaption></figure>

## 터치 입력의 매핑

데스크톱에서 사용할 수 있는 모든  `InputAction` 은 모바일 클라이언트에서도 사용할 수 있습니다. 화면 컨트롤은 터치 입력을 동일한 SDK 입력으로 전달하기만 합니다. 따라서 표준  `InputAction` 값에 의존하는 씬은 별도 설정 없이 모바일에서도 작동합니다.

화면 컨트롤은 다음과 같이 매핑됩니다.

* **화면 조이스틱**  — 다음 입력을 제어합니다. `IA_FORWARD` / `IA_BACKWARD` / `IA_LEFT` / `IA_RIGHT`  및 아바타 이동.
* **상호작용 버튼(오른쪽 아래)**  — 플레이어가 조준하는 대상을 향해  `IA_POINTER` 를 발생시킵니다(데스크톱의 마우스 왼쪽 버튼에 해당).
* **E 버튼**  —  `IA_PRIMARY` 를 발생시킵니다(데스크톱의  `E`  키에 해당).
* **F 버튼**  —  `IA_SECONDARY` 를 발생시킵니다(데스크톱의  `F`  키에 해당). 기본적으로 숨겨져 있습니다(아래 참조).
* **점프 버튼**  —  `IA_JUMP` 를 발생시킵니다(데스크톱의  `Space`  키에 해당). HUD에서 가장 큰 버튼이며 항상 쉽게 누를 수 있습니다.
* **1 / 2 / 3 / 4 버튼**  — 각각  `IA_ACTION_3` / `IA_ACTION_4` / `IA_ACTION_5` / `IA_ACTION_6` 을 발생시킵니다. 기본적으로 숨겨져 있습니다(아래 참조).
* **카메라 드래그** — 카메라를 회전합니다. 로 노출되지 않습니다 `InputAction`.

## 컨트롤 사용자 지정

장면에서 화면 컨트롤을 재구성할 수 있습니다. 조이스틱이나 조준점을 숨기거나, 버튼(점프 포함)을 숨기거나, 가운데 버튼의 동작을 변경하거나, 버튼 아이콘을 바꾸거나, 기본 컨트롤을 사용자 지정 UI로 완전히 대체할 수 있습니다. 자세한 내용은 [화면 컨트롤](https://docs.decentraland.org/creator/content-creator-ko/sdk7/interactivity/touch-screen-controls.md) 및 [UI 입력 바인딩](https://docs.decentraland.org/creator/content-creator-ko/sdk7/2d-ui/ui_input_binding.md).

<figure><img src="https://3980763956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-e8fa39c0bb21eb9c2ff7949a101321cc1549f937%2Fcustom-main-action.webp?alt=media" alt="Customized on-screen controls"><figcaption><p>사용자 지정 HUD: 아이콘을 바꾼 가운데 버튼에 다른 동작을 매핑한 예</p></figcaption></figure>

## 모바일에서 주요 동작에 사용하지 않는 것이 좋은 입력

모든 `InputAction` 은 화면 버튼에 연결할 수 있지만, SDK 7.32.0 이상으로 빌드한 장면에는 처음에 상호작용 버튼, E 버튼, 점프 버튼 세 개만 표시됩니다. `IA_SECONDARY` (F) 및 `IA_ACTION_3`–`IA_ACTION_6` ( `1`/`2`/`3`/`4` 버튼)은 **기본적으로 숨겨져**있으므로, 장면에서 표시하지 않으면 이들 중 하나에 바인딩된 주요 동작을 휴대폰에서 실행할 버튼이 없습니다. 이전 SDK에서는 버튼 8개가 모두 표시되지만, 우선순위가 가장 낮은 버튼은 게임 중 쉽게 사용하기 어려운 "+" 더보기 메뉴 뒤에 있습니다.

장면에서 [화면 컨트롤](https://docs.decentraland.org/creator/content-creator-ko/sdk7/interactivity/touch-screen-controls.md)을 사용해 이 버튼들을 명시적으로 표시하지 않는 한, 다음 입력에 주요 동작을 바인딩하지 마세요.

* `IA_SECONDARY` — 데스크톱에서는 `F` 키 / 모바일에서는 `F` 버튼
* `IA_ACTION_3` — 데스크톱에서는 `1` 키 / 모바일에서는 `1` 버튼
* `IA_ACTION_4` — 데스크톱에서는 `2` 키 / 모바일에서는 `2` 버튼
* `IA_ACTION_5` — 데스크톱에서는 `3` 키 / 모바일에서는 `3` 버튼
* `IA_ACTION_6` — 데스크톱에서는 `4` 키 / 모바일에서는 `4` 버튼

대신 다음을 사용하세요.

* `IA_POINTER` 주요 탭/상호작용 버튼에 사용
* `IA_PRIMARY` E 버튼 동작에 사용
* `IA_JUMP` 동작이 점프에 자연스럽게 대응하는 경우(모바일 HUD에서 가장 크고 누르기 쉬운 버튼입니다)
* 근접 기반 트리거( [근접 이벤트](https://docs.decentraland.org/creator/content-creator-ko/sdk7/interactivity/button-events/proximity-events.md)참조): 플레이어가 엔터티에 접근하면 동작이 자동으로 실행되어야 하는 경우

## 커서 잠금

이 [`PointerLock` 컴포넌트는](https://docs.decentraland.org/creator/content-creator-ko/sdk7/interactivity/button-events/click-events.md#lock-or-unlock-the-cursor) 데스크톱 클라이언트의 개념으로, 마우스 커서의 잠금 여부를 나타냅니다. 모바일 터치에는 적용되지 않으므로 씬에 그대로 두어도 안전합니다. 모바일에서는 아무 효과가 없습니다.

## 관련 항목

* [화면 컨트롤](https://docs.decentraland.org/creator/content-creator-ko/sdk7/interactivity/touch-screen-controls.md)
* [UI 입력 바인딩](https://docs.decentraland.org/creator/content-creator-ko/sdk7/2d-ui/ui_input_binding.md)
* [클릭 이벤트](https://docs.decentraland.org/creator/content-creator-ko/sdk7/interactivity/button-events/click-events.md)
* [근접 이벤트](https://docs.decentraland.org/creator/content-creator-ko/sdk7/interactivity/button-events/proximity-events.md)
* [코드에서 플랫폼 감지](https://docs.decentraland.org/creator/content-creator-ko/build-for-mobile/develop/detect-platform.md)
* [모바일 UI 모범 사례](https://docs.decentraland.org/creator/content-creator-ko/build-for-mobile/develop/ui-best-practices.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-ko/build-for-mobile/develop/input-on-mobile.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
