# Control Type

The **Control Type** specifies the intended function of the touch control, whether it’s used for movement, camera manipulation, or performing actions. Each type comes with its own unique behavior tailored to its purpose, enhancing the overall gameplay controls.&#x20;

**Available Control Types:**

* **Default None:** No additional behavior. Best when only needs basic interactions.
* **Push Button:** Designed for discrete actions, such as jumping or attacking.
* **Analog Stick:** Suitable for directional movement, such as character navigation.
* **Steering Wheel:** Ideal for precise turning or steering in driving mechanics.
* **Swipe Pad:** Great for infinite runner games, enabling quick swiping actions.
* **Gesture Pad:** Typically used for camera controls, including zoom and orbit.

## Input Simulation

Most Control Types support Input Simulation, which allows you to simulate input by using a Control Path. A **Control Path** specifies the input you want to mimic, such as a Keyboard Key, Gamepad Button, and so on.

At runtime, a virtual input device is automatically created based on the specified Control Path in the **`Input Simulate`** field. The Control Type then links its value to the corresponding input control on this virtual input device.

<div><figure><img src="/files/5nJWxluwWaPGWSfu8kKS" alt="" width="273"><figcaption></figcaption></figure> <figure><img src="/files/28vjPAZ3InRuoHDYfBVc" alt="" width="273"><figcaption></figcaption></figure></div>

The **`Input Simulate`** field varies depending on the defined Control Type and can represent different kinds of Control Path, such as:

* **Control Path Button**: Push Button, Swipe Pad.
* **Control Path Axis**: Steering Wheel, Gesture Pad  Pinch and Twist.
* **Control Path Vector2**: Analog Stick, Gesture Pad Pan.

***

## Coordinate Scaling

Certain control types, such as Swipe Pad or Gesture Pad, utilize coordinate scaling settings to ensure consistent touch points coordination across various screen sizes or resolutions.

<figure><img src="/files/7yuyFJMgfu9zSyOhvRfE" alt="" width="563"><figcaption></figcaption></figure>

### **Scale Modes:**

* **Screen Pixel:** Position and distance are defined in raw screen pixels, maintaining exact dimensions regardless of the screen resolution.
* **Screen Size:** Position and distance are scaled relative to a specified reference resolution, ensuring proportional adaptation across different screen sizes.
* **Scaled Pixel:** Position and distance are adjusted according to a specified reference DPI, allowing for consistent physical dimensions across devices with varying pixel densities.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://niam.gitbook.io/documentation/game-creator-2/tactile/control-type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
