Exemplo n.º 1
0
 /// <summary>
 ///     Gets the current position of the mouse in screen co-ords
 /// </summary>
 /// <param name="mouseDevice">
 ///     The MouseDevice that is making the request
 /// </param>
 /// <returns>
 ///     The current mouse location in screen co-ords
 /// </returns>
 /// <remarks>
 ///     This is the hook where the Input system (via the MouseDevice) can call back into
 ///     the Stylus system when we are processing Stylus events instead of Mouse events
 /// </remarks>
 internal Point GetMouseScreenPosition(MouseDevice mouseDevice)
 {
     return(StylusDeviceImpl.GetMouseScreenPosition(mouseDevice));
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Gets the current state of the specified button
 /// </summary>
 /// <param name="mouseButton">
 ///     The mouse button to get the state of
 /// </param>
 /// <param name="mouseDevice">
 ///     The MouseDevice that is making the request
 /// </param>
 /// <returns>
 ///     The state of the specified mouse button
 /// </returns>
 /// <remarks>
 ///     This is the hook where the Input system (via the MouseDevice) can call back into
 ///     the Stylus system when we are processing Stylus events instead of Mouse events
 /// </remarks>
 internal MouseButtonState GetMouseButtonState(MouseButton mouseButton, MouseDevice mouseDevice)
 {
     return(StylusDeviceImpl.GetMouseButtonState(mouseButton, mouseDevice));
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Calculates the position of the stylus relative to a particular element.
 /// </summary>
 public Point GetPosition(IInputElement relativeTo)
 {
     VerifyAccess();
     return(StylusDeviceImpl.GetPosition(relativeTo));
 }
Exemplo n.º 4
0
 /// <summary>
 ///     Returns a StylusPointCollection object for processing the data in the packet.
 ///     This method creates a new StylusPointCollection and copies the data.
 /// </summary>
 public StylusPointCollection GetStylusPoints(IInputElement relativeTo, StylusPointDescription subsetToReformatTo)
 {
     return(StylusDeviceImpl.GetStylusPoints(relativeTo, subsetToReformatTo));
 }
Exemplo n.º 5
0
        /// <summary>
        ///     Returns a StylusPointCollection object for processing the data in the packet.
        ///     This method creates a new StylusPointCollection and copies the data.
        /// </summary>
        public StylusPointCollection GetStylusPoints(IInputElement relativeTo)
        {
            VerifyAccess();

            return(StylusDeviceImpl.GetStylusPoints(relativeTo));
        }
Exemplo n.º 6
0
 /// <summary>
 ///     Forces the stylusdevice to resynchronize at it's current location and state.
 ///     It can conditionally generate a Stylus Move/InAirMove (at the current location) if a change
 ///     in hittesting is detected that requires an event be generated to update elements
 ///     to the current state (typically due to layout changes without Stylus changes).
 ///     Has the same behavior as MouseDevice.Synchronize().
 /// </summary>
 public void Synchronize()
 {
     StylusDeviceImpl.Synchronize();
 }
Exemplo n.º 7
0
 /// <summary>
 ///     Captures the stylus to a particular element.
 /// </summary>
 public bool Capture(IInputElement element, CaptureMode captureMode)
 {
     return(StylusDeviceImpl.Capture(element, captureMode));
 }