---
# System prepended metadata

title: PicoInput

---

# PicoInput

取得 Pico 控制器輸入

![](https://i.imgur.com/c4vRmKP.png =256x)


## GetButton
按鈕是否被按著？


## GetButtonDown
按鈕是否(在這一幀)被按下？

##### Sample Usage
```csharp!
if(PicoInput.GetButtonDown(PicoInput.PicoButton.TriggerL) || PicoInput.GetButtonDown(PicoInput.PicoButton.TriggerR))
{
    Debug.Log($"你剛按下了扳機鍵");
}
```

## GetButtonUp
按鈕是否(在這一幀)被放開？

## GetJoystickValue
搖桿的數值 
參數帶 0=左手 1=右手
(return value is capped within (-1,-1) to (1,1))
