ArcadeStick.ArcadeStickAdded Evento

Definizione

Segnala quando è connesso un nuovo bastone arcade.

// Register
static event_token ArcadeStickAdded(EventHandler<ArcadeStick> const& handler) const;

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

// Revoke with event_revoker
static ArcadeStick::ArcadeStickAdded_revoker ArcadeStickAdded(auto_revoke_t, EventHandler<ArcadeStick> const& handler) const;
public static event System.EventHandler<ArcadeStick> ArcadeStickAdded;
function onArcadeStickAdded(eventArgs) { /* Your code */ }
Windows.Gaming.Input.ArcadeStick.addEventListener("arcadestickadded", onArcadeStickAdded);
Windows.Gaming.Input.ArcadeStick.removeEventListener("arcadestickadded", onArcadeStickAdded);
- or -
Windows.Gaming.Input.ArcadeStick.onarcadestickadded = onArcadeStickAdded;
Public Shared Custom Event ArcadeStickAdded As EventHandler(Of ArcadeStick) 

Tipo evento

Commenti

Per identificare i controller già aggiunti, eseguire una query sull'elenco dei controller connessi usando ArcadeStick.ArcadeSticks.

Si applica a