Esempio n. 1
0
 private InputManager()
 {
     this._stagingArea         = new Queue();
     this._currentStagingStack = new Stack();
     this._frameStagingArea    = new ArrayList();
     this.InputDeviceEvents    = new InputManager.DeviceEvents[3];
     for (int index = 0; index < 3; ++index)
     {
         this.InputDeviceEvents[index] = new InputManager.DeviceEvents();
     }
     this._continueProcessingStagingAreaCallback = new DispatcherOperationCallback(this.ProcessStagingArea);
     this._buttonDevice  = new ButtonDevice(this);
     this._touchDevice   = new TouchDevice(this);
     this._genericDevice = new GenericDevice(this);
 }
 /// <summary>
 ///     Constructs an instance of the ButtonEventArgs class.
 /// </summary>
 /// <param name="buttonDevice">
 ///     The button device associated with this event.
 /// </param>
 /// <param name="timestamp">
 ///     The time when the input occured. (machine time)
 /// </param>
 /// <param name="button">
 ///     The button referenced by the event.
 /// </param>
 public ButtonEventArgs(ButtonDevice buttonDevice, PresentationSource inputSource, DateTime timestamp, HardwareButton button)
     : base(buttonDevice, timestamp)
 {
     this.InputSource = inputSource;
     this.Button      = button;
 }
Esempio n. 3
0
 /// <summary>
 ///     Constructs an instance of the FocusChangedEventArgs class.
 /// </summary>
 /// <param name="button">
 ///     The logical button device associated with this event.
 /// </param>
 /// <param name="timestamp">
 ///     The time when the input occured.
 /// </param>
 /// <param name="oldFocus">
 ///     The element that previously had focus.
 /// </param>
 /// <param name="newFocus">
 ///     The element that now has focus.
 /// </param>
 public FocusChangedEventArgs(ButtonDevice buttonDevice, DateTime timestamp, UIElement oldFocus, UIElement newFocus)
     : base(buttonDevice, timestamp)
 {
     this.OldFocus = oldFocus;
     this.NewFocus = newFocus;
 }