Controller

非推奨を表示
作成できません

The base class for controller objects, such as the HumanoidController object.

概要

方法

イベント

プロパティ

方法

BindButton

void

Activates an overriding bind on the specified button.

パラメータ

button: Enum.Button
caption: string

戻り値

void

コードサンプル

Controller:BindButton1

local ControllerService = game:GetService("ControllerService")
local humanoidController = ControllerService:FindFirstChildOfClass("HumanoidController")
humanoidController:BindButton(Enum.Button.Dismount, "win!")

GetButton

Returns whether or not Button is being pressed.

パラメータ

button: Enum.Button

戻り値

UnbindButton

void

Removes the bind on button.

パラメータ

button: Enum.Button

戻り値

void

イベント

ButtonChanged

Fired when the pressed state of a bound button is changed. This event can be used in conjunction with Controller:GetButton() to see whether a bound button is being pressed down or not.

パラメータ

button: Enum.Button