Joystick:getGamepadMapping (한국어)

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

가상 게임패드에 대응된 조이스틱 버튼, 축, 햇을 구합니다.

함수

형식

inputtype, inputindex, hatdirection = Joystick:getGamepadMapping( axis )

매개변수

GamepadAxis (한국어) axis
대응을 확인할 가상 게임패드 지원 조이스틱 축.

리턴값

JoystickInputType (한국어) inputtype
대응된 입력 방식.
number inputindex (한국어)
대응된 조이스틱 축, 버튼, 햇의 인덱스.
JoystickHat (한국어) hatdirection (nil)
대응된 조이스틱 햇의 방향. 햇이 아니라면 nil.

알아 두기

조이스틱이 가상 게임패드로 여겨지지 않거나 가상 게임패드로 대응된 적이 없다면 이 함수는 항상 nil를 리턴합니다.

함수

형식

inputtype, inputindex, hatdirection = Joystick:getGamepadMapping( button )

매개변수

GamepadButton (한국어) button
대응을 확인할 가상 게임패드 지원 조이스틱 버튼.

리턴값

JoystickInputType (한국어) inputtype
대응된 입력 방식.
number (한국어) inputindex
대응된 조이스틱 축, 버튼, 햇의 인덱스.
JoystickHat (한국어) hatdirection (nil)
대응된 조이스틱 햇의 방향. 햇이 아니라면 nil.

알아 두기

조이스틱이 가상 게임패드로 여겨지지 않거나 가상 게임패드로 대응된 적이 없다면 이 함수는 항상 nil를 리턴합니다.

알아 두기

조이스틱을 위한 가상 게임패드 호환 조이스틱 축의 물리적 위치는 가능한 한 표준 Xbox 360 컨트롤러의 구성에 부합하는 것이 좋습니다.

360 controller.png

같이 보기

다른 언어