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