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 查询连接的赛车方向盘列表。