Compartilhar via


ArcadeStick.ArcadeStickAdded Evento

Definição

Sinaliza quando um novo joystick de arcade está conectado.

// 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 de evento

Comentários

Para identificar os controladores que já foram adicionados, consulte a lista de controladores conectados usando ArcadeStick.ArcadeSticks.

Aplica-se a