ArcadeStick.ArcadeStickAdded ArcadeStick.ArcadeStickAdded ArcadeStick.ArcadeStickAdded ArcadeStick.ArcadeStickAdded ArcadeStick.ArcadeStickAdded Event

Definition

Signals when a new arcade stick is connected.

public : event EventHandler<ArcadeStick> ArcadeStickAdded
// Register
event_token ArcadeStickAdded(EventHandler<ArcadeStick> const& handler) const;

// Revoke with event_token
void ArcadeStickAdded(event_token const& cookie) const;

// Revoke with event_revoker
ArcadeStickAdded_revoker ArcadeStickAdded(auto_revoke_t, EventHandler<ArcadeStick> const& handler) const;
public event EventHandler<ArcadeStick> ArcadeStickAdded
Public Event ArcadeStickAdded As EventHandler (Of ArcadeStick)
function onArcadeStickAdded(eventArgs){/* Your code */}


arcadeStick.addEventListener("arcadestickadded", onArcadeStickAdded);
arcadeStick.removeEventListener("arcadestickadded", onArcadeStickAdded);

Remarks

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