다음을 통해 공유


Gamepad.GamepadRemoved 이벤트

정의

게임 패드의 연결이 끊어지면 신호를 보냅니다.

// Register
static event_token GamepadRemoved(EventHandler<Gamepad> const& handler) const;

// Revoke with event_token
static void GamepadRemoved(event_token const* cookie) const;

// Revoke with event_revoker
static Gamepad::GamepadRemoved_revoker GamepadRemoved(auto_revoke_t, EventHandler<Gamepad> const& handler) const;
public static event System.EventHandler<Gamepad> GamepadRemoved;
function onGamepadRemoved(eventArgs) { /* Your code */ }
Windows.Gaming.Input.Gamepad.addEventListener("gamepadremoved", onGamepadRemoved);
Windows.Gaming.Input.Gamepad.removeEventListener("gamepadremoved", onGamepadRemoved);
- or -
Windows.Gaming.Input.Gamepad.ongamepadremoved = onGamepadRemoved;
Public Shared Custom Event GamepadRemoved As EventHandler(Of Gamepad) 

이벤트 유형

적용 대상