컨트롤러 개체, 예를 들어 HumanoidController 개체의 기본 클래스.
요약
메서드
지정된 버튼에 재정의 바인드를 활성화합니다.
버튼이 누르거나 누르지 않는지 여부를 반환합니다.
버튼의 바인딩을 제거합니다.
이벤트
바인딩된 버튼의 누르기 상태가 변경될 때 발사됩니다.이 이벤트는 Controller:GetButton()와 함께 사용하여 바인딩된 버튼이 누르거나 누르지 않는지 확인할 수 있습니다.
속성
메서드
BindButton
()
지정된 버튼에 재정의 바인드를 활성화합니다.
매개 변수
기본값: ""
기본값: ""
반환
()
코드 샘플
The example below when placed inside a LocalScript, would result in a GUI saying "Press Backspace to win!".
Controller:BindButton1
local ControllerService = game:GetService("ControllerService")
local humanoidController = ControllerService:FindFirstChildOfClass("HumanoidController")
humanoidController:BindButton(Enum.Button.Dismount, "win!")
이벤트
ButtonChanged
바인딩된 버튼의 누르기 상태가 변경될 때 발사됩니다.이 이벤트는 Controller:GetButton()와 함께 사용하여 바인딩된 버튼이 누르거나 누르지 않는지 확인할 수 있습니다.