c6fe72bdc9
Multiple improvements to InputHandler key/button repeats:
...
- Trigger InputHandler key and gamepad repeats for the most recently pressed input
- Added InputHandler.TryGetDownTime and store the down times of inputs
- Removed InputHandler.StoreAllActiveInputs and always store all active inputs
2022-03-25 15:18:57 +01:00
4aff5a2875
Fixed RootElement.CanSelectContent returning incorrect results when CanBeSelected changes in children
2022-03-17 20:36:30 +01:00
fa34258bbe
Added UiControls.AutoNavModeChanged event
2022-03-14 16:12:51 +01:00
8fa94f1186
improve gamepad priority calculation
2022-03-14 15:59:22 +01:00
d5f3453c71
combine distance and angle for gamepad ui navigation
2022-03-14 15:39:32 +01:00
2c90ca9b89
Fixed UiControls allowing for non-selectable or non-mouseable elements to be marked as selected or moused
2022-03-11 12:29:56 +01:00
96f0c51757
Added RectangleF.DistanceSquared and RectangleF.Distance
2022-03-10 16:03:09 +01:00
a14a37cb91
Prefer elements that have the same parent as the currently selected element when using gamepad navigation
2022-03-10 15:00:42 +01:00
45955bb5e8
Improved gamepad navigation by employing angles between elements
2022-03-10 14:25:41 +01:00
48b96a10a4
Added InputHandler mouse and touch position querying that preserves the game's viewport and fixed the graphics device's viewport being ignored for mouse and touch queries
...
Closes #1
2022-02-06 22:07:33 +01:00
5b99f29490
Fixed some inconsistencies with element transformations and mouse interaction
2021-11-22 15:13:08 +01:00
a5a73af01c
improved Keybind constructors
2021-06-20 23:48:02 +02:00
a02334a34c
turned some non-event events into events and added Disposing event to ui elements
2021-06-09 00:27:50 +02:00
01b6168259
fixed the input handler querying input when the window is inactive
2021-02-18 18:36:29 +01:00
106102adf6
clean up unused using statements
2020-12-14 21:51:27 +01:00
Ellpeck
ec2416719e
store all ui controls keybinds in an array
2020-07-16 16:04:18 +02:00
Ellpeck
deec553b22
code cleanup
2020-06-18 17:24:35 +02:00
Ellpeck
251261f3d7
added a more generic keybind and input handling system
2020-06-12 17:09:35 +02:00
Ellpeck
6b1e5f8dd9
better implementation of the touch mousing from yesterday
2020-06-04 20:52:21 +02:00
Ellpeck
81ed3d3bee
Revert "made elements also show their mouse over graphic when they're being touched"
...
This reverts commit d7f43617
2020-06-03 17:01:58 +02:00
Ellpeck
f70b1266f9
Revert "only count an element as touched if no other gestures are active"
...
This reverts commit 08188a1a
2020-06-03 16:18:17 +02:00
Ellpeck
08188a1a8f
only count an element as touched if no other gestures are active
2020-06-03 16:14:45 +02:00
Ellpeck
d7f43617c6
made elements also show their mouse over graphic when they're being touched
2020-06-03 15:58:08 +02:00
Ellpeck
f12284169e
full xml documentation for MLEM.Ui
2020-05-22 17:02:24 +02:00
Ellpeck
efed3d9e12
some controls helper methods
2020-05-04 16:41:54 +02:00
Ellpeck
739d337d49
undo the width/height "fix"
2020-03-18 03:38:30 +01:00
Ellpeck
b175df7397
fixed a possible crash with empty uis
2020-03-17 19:29:52 +01:00
Ellpeck
054dc8c932
made button inputs more generic to allow for broader usage
2020-03-17 19:13:33 +01:00
Ellpeck
f4f7df0eb8
inflate view width and height for gamepad input to account for offscreen elements
2020-03-17 15:24:33 +01:00
Ellpeck
5e3fdbb8ef
made controls independent of ui systems to allow for multiple controls for one ui
2020-03-17 15:04:36 +01:00
Ellpeck
9df1b05bee
allow changing auto nav mode value
2020-03-16 15:33:25 +01:00
Ellpeck
b3331834e1
I did not want to push this here
...
This reverts commit ee511137
2020-02-06 01:51:41 +01:00
Ellpeck
ee5111372b
part 1
2020-02-06 01:33:24 +01:00
Ellpeck
69fdd784a7
Revert "made the default text input style be desktopgl"
...
This reverts commit aa64ebc0
2020-02-01 21:16:27 +01:00
Ellpeck
aa64ebc0ef
made the default text input style be desktopgl
2020-02-01 20:51:41 +01:00
Ellpeck
053724e4f8
changed text input style to work on all devices including web
2020-02-01 20:50:42 +01:00
Ellpeck
7e6534bfc1
added the option to disable buttons
2020-01-15 17:05:28 +01:00
Ellpeck
a0f0859ba2
don't consider hidden elements for the active root
2019-12-25 00:28:08 +01:00
Ellpeck
ff42233222
made input handler and ui system gamecomponents
2019-12-05 17:52:25 +01:00
Ellpeck
f1702ee5b2
added a way to tell ui controls to ignore certain input types
2019-12-04 01:17:16 +01:00
Ellpeck
32c8147a4c
added a rectanglef class which allows mlem to use decimal coordinates
2019-11-02 14:53:59 +01:00
Ellpeck
76bba86b0c
fixed a ui system crash when there is no active root
2019-09-17 19:30:54 +02:00
Ellpeck
07b6853e0c
give access to all of the element callbacks in the ui system
2019-09-13 13:57:25 +02:00
Ellpeck
8afe9962fb
added a dropdown menu and also fixed some issues
2019-09-12 12:39:18 +02:00
Ellpeck
3796cc5ef0
made a bunch of stuff in UiControls virtual so that changing more complex aspects is easier
2019-09-11 18:44:05 +02:00
Ellpeck
39be76fbbf
made more buttons configurable in the ui controls
2019-09-11 10:44:23 +02:00
Ellpeck
7e8da6d838
fixed gamepad indices not being taken into account for directions in ui
2019-09-10 12:40:22 +02:00
Ellpeck
42a0ef172b
optimize the active root
2019-09-09 17:18:44 +02:00
Ellpeck
672e5eb548
clean up navigation a lot
2019-09-09 17:12:36 +02:00
Ellpeck
c52c9825f0
added gamepad controls
2019-09-09 16:25:07 +02:00