Controller
사용되지 않는 항목 표시
만들 수 없음
The base class for controller objects, such as the HumanoidController object.
요약
메서드
Activates an overriding bind on the specified button.
Returns whether or not Button is being pressed.
Removes the bind on button.
이벤트
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.
속성
메서드
BindButton
void
Activates an overriding bind on the specified button.
매개 변수
반환
void
코드 샘플
Controller:BindButton1
local ControllerService = game:GetService("ControllerService")
local humanoidController = ControllerService:FindFirstChildOfClass("HumanoidController")
humanoidController:BindButton(Enum.Button.Dismount, "win!")
이벤트
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.