Dela via


ArcadeStick.ArcadeStickAdded Event

Definition

Signals when a new arcade stick is connected.

// 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) 

Event Type

Remarks

To identify controllers that have already been added, you query the list of connected controllers using ArcadeStick.ArcadeSticks.

Applies to