public GamePadWrapper(DependencyObject owner) { _owner = owner; WpfGamePad.AddThumbLeftChangeHandler(owner, OnBlockPosChanged); WpfGamePad.AddTriggerLeftChangeHandler(owner, OnChangeCase); WpfGamePad.AddTriggerRightChangeHandler(owner, OnChangeSymbols); WpfGamePad.AddButtonADownHandler(owner, OnCharUp); WpfGamePad.AddButtonBDownHandler(owner, OnCharRight); WpfGamePad.AddButtonXDownHandler(owner, OnCharLeft); WpfGamePad.AddButtonYDownHandler(owner, OnCharDown); WpfGamePad.AddDPadLeftDownHandler(owner, OnMoveLeftDown); WpfGamePad.AddDPadRightDownHandler(owner, OnMoveRightDown); WpfGamePad.AddDPadDownDownHandler(owner, OnEnterDown); WpfGamePad.AddButtonStartDownHandler(owner, OnEnterDown); WpfGamePad.AddButtonLeftShoulderDownHandler(owner, OnDeleteDown); WpfGamePad.AddButtonRightShoulderDownHandler(owner, OnSpaceDown); WpfGamePad.AddDPadLeftUpHandler(owner, OnMoveLeftUp); WpfGamePad.AddDPadRightUpHandler(owner, OnMoveRightUp); WpfGamePad.AddDPadDownUpHandler(owner, OnEnterUp); WpfGamePad.AddButtonStartUpHandler(owner, OnEnterUp); WpfGamePad.AddButtonLeftShoulderUpHandler(owner, OnDeleteUp); WpfGamePad.AddButtonRightShoulderUpHandler(owner, OnSpaceUp); }