Giuseppe Lippolis
5d37960921
fixes(Input): Suppress warning CS0618 'MouseDevice.Position' is obsolete
5 years ago
Max Katz
3984ba2ec5
Enable nullability for InputElement, Interactive, Visual
5 years ago
Benedikt Schroeder
08a72e893c
Increase TextFormatter compatibility with WPF's version
5 years ago
Nikita Tsukanov
fb7b7a002c
Fixed initial pointerover at (0, 0) when window is just shown
6 years ago
Steven Kirk
a42e8cbded
Nullable enable Avalonia.Input.
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
José Pedro
fc1a60b159
Added support for extra mouse buttons.
7 years ago
Nikita Tsukanov
3b1005f04e
Removed pointer global state that caused trouble
7 years ago
Nikita Tsukanov
a16e3bff7f
Added InitialPressMouseButton to PointerReleasedEventArgs that returns the button that caused the PointerPressed event
MouseButton is now deprecated with error, since people need to decide which behavior they want
7 years ago
Steven Kirk
bd354143ca
Notify MouseDevice when TopLevel closed.
So it can remove pointerover state.
7 years ago
Nikita Tsukanov
0bad390dac
Added PointerUpdateKind and replaced InputModifiers with KeyModifiers
7 years ago
Nikita Tsukanov
85a5288fdd
Propagate mouse pointer capture to Win32 API
7 years ago
Nikita Tsukanov
9f249b6b53
Fixed right mouse button handling
7 years ago
Nikita Tsukanov
b387c38c84
Implemented simple inertial scroll
7 years ago
Nikita Tsukanov
ec99f7d1a9
Initial scroll gesture implementation
7 years ago
Nikita Tsukanov
4c1f42b48a
PR comments
7 years ago
Nikita Tsukanov
6827179476
Implemented TouchDevice and touch input support for X11 backend
7 years ago
Nikita Tsukanov
f556db57b4
Refactor pointer events to support touch events
7 years ago
Steven Kirk
4ad4ba4a9e
Set InputModifiers on PointerEnter/Leave.
Note that these will not be set when a pointer enter/leave occurs because of a control moving or appearing/disappearing.
Fixes #2495
7 years ago
Steven Kirk
12cd666dc7
Respect RenderTransform in GetPosition.
Fixes #1558 .
8 years ago
Steven Kirk
4ec2b1c554
Use PixelPoint and PixelRect for device points/rects.
The affected members are:
- `IWindowBaseImpl.Position`
- `IWindowBaseImpl.PositionChanged`
- `ITopLevelImpl.PointToClient`
- `ITopLevelImpl.PointToScreen`
- `IMouseDevice.Position`
- `Screen.Bounds`
- `Screen.WorkingArea`
8 years ago
ahopper
7c5802efcf
change name and check invalidate rect
8 years ago
ahopper
e11af71e9f
allow for content changes with no mouse movement
8 years ago
ahopper
b515f7a30e
allow for pointerover control being removed from visual tree
8 years ago
Nikita Tsukanov
666efd311b
[X11] Initial windowing and mouse events
8 years ago
Miha Markič
0a38876590
Spellchecks all projects except for Base, Controls, Samples and Testing
8 years ago
Steven Kirk
895a24fb9e
Raise pointer enter/leave events in correct order.
Previously, enter events were raised before leave events.
8 years ago
Steven Kirk
3f0c7650e5
Make sure IsPointerOver is correctly set.
Reset the handled state for `PointerEnter`/`PointerLeave` on each control invocation, and don't allow the user to skip setting `IsPointerOver`
8 years ago
Steven Kirk
763775fa82
Clear mouse capture when control removed.
When a captured control is removed from the visual tree, clear the mouse capture.
Note that our capture logic needs to be improved - it shouldn't be possible to capture a non-visible or non-enabled control. This doesn't address that but it does fix the crash in #1203 .
Fixes #1203
9 years ago
Nikita Tsukanov
91691c30a7
PR notes
9 years ago
Nikita Tsukanov
21da2df1ec
Call ProcessRawEvent directly from the input manager
9 years ago
Nikita Tsukanov
77b7026ac9
Removed IMouseDevice from service locator
9 years ago
Steven Kirk
d61d95af19
Ported changes to Avalonia.Input from scenegraph.
Fixed some doc comments, and updated the mouse-over algorithm.
10 years ago
Steven Kirk
f9f658c89f
Handle null event source.
10 years ago
Steven Kirk
349ba78931
Fixed pointerover state.
And added a test for it.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
015054a8fd
Added a pre-process hook to InputManager,
And some documentation.
11 years ago
Steven Kirk
e8a8c12f87
Fix MouseDevice.GetPosition.
Algorithm was incorrect when in a window with DPI scaling.
11 years ago
Steven Kirk
3e3134217c
Fixed name of PointerPressedEventArgs.
11 years ago
Steven Kirk
9191234f54
Fix keyboard handling.
Allows Alt+F4 to work.
11 years ago
Steven Kirk
d1918c7a77
MouseDevice,Position should be in screen coords.
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Nikita Tsukanov
85b530e363
New ios backend
11 years ago
Nikita Tsukanov
45e5588a0a
Implemented middle mouse button
closes #198
11 years ago
Nikita Tsukanov
79f8f76351
ref #198
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Nikita Tsukanov
b4db6600b3
SetPoinerOver should fallback to the root element
11 years ago
Steven Kirk
406f476a7c
Simplify MouseMove logic.
11 years ago
Steven Kirk
90d7d81889
Correctly dispatch PointerMoved events.
Fixes #130 .
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
11 years ago