RacingWheel.RacingWheelAdded 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當新的賽車方向盤連接時發出訊號。
// Register
static event_token RacingWheelAdded(EventHandler<RacingWheel> const& handler) const;
// Revoke with event_token
static void RacingWheelAdded(event_token const* cookie) const;
// Revoke with event_revoker
static RacingWheel::RacingWheelAdded_revoker RacingWheelAdded(auto_revoke_t, EventHandler<RacingWheel> const& handler) const;
public static event System.EventHandler<RacingWheel> RacingWheelAdded;
function onRacingWheelAdded(eventArgs) { /* Your code */ }
Windows.Gaming.Input.RacingWheel.addEventListener("racingwheeladded", onRacingWheelAdded);
Windows.Gaming.Input.RacingWheel.removeEventListener("racingwheeladded", onRacingWheelAdded);
- or -
Windows.Gaming.Input.RacingWheel.onracingwheeladded = onRacingWheelAdded;
Public Shared Custom Event RacingWheelAdded As EventHandler(Of RacingWheel)
事件類型
備註
若要識別已新增的賽車方向盤,您可以使用 RacingWheel.RacingWheels查詢連接的賽車方向盤清單。