Ell
ef0499958d
- Added InputHandler.IsPressedIgnoreRepeats
...
- Marked non-GenericInput versions of IsDown, IsUp, IsPressed and related methods as obsolete in favor of GenericInput ones
2022-12-27 22:57:35 +01:00
Ell
79a2eaa8d2
Added InputHandler.WasPressedForLess and related methods
2022-12-26 18:44:46 +01:00
Ell
14d0b24aa9
cleaned up preprocessor instructions
2022-12-13 13:11:36 +01:00
Ell
8bb62a2ce5
also added WasModifierDown and WasDown to Keybind and Combination
2022-11-08 17:43:34 +01:00
Ell
797a3b2617
Improved the way InputHandler down time calculation works
2022-11-08 17:12:37 +01:00
Ell
d138577285
Added trimming and AOT annotations and made MLEM trimmable
2022-10-31 18:33:53 +01:00
Ell
f58e3c94d5
Marked EnumHelper and DynamicEnum as obsolete due to their reimplementation in the DynamicEnums library
2022-10-31 13:20:26 +01:00
Ell
560c797b87
Fixed InputHandler and UiControls maintaining old input states when input types are toggled off
2022-10-10 19:29:01 +02:00
Ell
48735c3d36
Multi-target net452, making MLEM compatible with MonoGame for consoles
2022-09-14 21:17:43 +02:00
Ell
fc026ad0de
multi-target netstandard2.0 and net6.0
2022-09-14 19:24:00 +02:00
Ell
0a696941dc
cleaned up code
2022-08-20 11:39:28 +02:00
Ell
e50d28ce11
Allow using external gesture handling alongside InputHandler through ExternalGestureHandling
2022-08-11 11:37:41 +02:00
Ell
d32bc0cbfb
Added TryGetUpTime, GetUpTime, TryGetTimeSincePress and GetTimeSincePress to InputHandler
2022-06-29 15:57:41 +02:00
Ell
92018eea1e
Made the base package's description more descriptive
...
This reverts commit 2973bd98e2
.
This reverts commit 04c6bb5ff8
.
2022-06-26 14:25:19 +02:00
Ell
2973bd98e2
moved MLEM's Input namespace into its own package
2022-06-25 23:46:06 +02:00
Ell
5d7d238630
added MLEM.FNA
2022-06-24 14:01:26 +02:00
Ell
aabb1ed5df
added .editorconfig
2022-06-17 18:23:47 +02:00
Ell
59af00c89a
Code cleanup, and marked AStar.InfiniteCost as obsolete
2022-06-15 11:38:11 +02:00
Ell
8968e6025d
Added IsPressConsumed and IsAnyPressedAvailable to InputHandler
2022-05-17 18:20:31 +02:00
Ell
610527374e
Make use of the new consuming variants in InputHandler and Keybind to consume UiControls inputs
2022-04-30 12:14:08 +02:00
Ell
46c77d2444
Added InputHandler.InvertPressBehavior
2022-04-29 15:34:04 +02:00
Ell
f445f59078
Added consuming variants of IsPressed methods to InputHandler
2022-04-11 10:33:41 +02:00
Ell
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
Ell
bb7192b3cc
Fixed InputHandler.InputsPressed ignoring repeat events for keyboards and gamepads
2022-03-24 11:43:55 +01:00
Ell
35e3896dc1
fixed new InputHandler deadzone querying equality being inverted
2022-03-14 15:18:01 +01:00
Ell
5d97ab033f
Added GamepadExtensions.GetAnalogValue to get the analog value of any gamepad button
2022-03-14 15:15:30 +01:00
Ell
0918e1700b
made the new changes work correctly with touch input
2022-02-06 22:23:41 +01:00
Ell
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
Ell
ab76ea5ba8
organized InputHandler properties and fields
2022-02-06 21:12:57 +01:00
Ell
29bbd61f8b
reformat and cleanup
2021-12-28 14:56:11 +01:00
Ell
abac738123
Removed LINQ Any and All usage in various methods to improve memory usage
2021-07-18 22:18:46 +02:00
Ell
58bd076e2a
Set default values for InputHandler held and pressed keys to avoid an exception if buttons are held in the very first frame
2021-06-30 19:40:43 +02:00
Ell
2f16bbdc44
the None input type should always be considered up
2021-06-21 00:51:21 +02:00
Ell
ce920b5219
added an element helper method to create a keybind button
2021-06-21 00:49:09 +02:00
Ell
60c9236cbd
added InputsDown and InputsPressed to InputHandler
2021-06-20 23:05:02 +02:00
Ell
cf9bcc7ae4
updated to MonoGame 8 and added support for opening the on-screen keyboard to TextInputWrapper
2021-04-22 19:26:07 +02:00
Ell
2055c3a6ef
convert tests to use graphics
2021-04-02 17:12:27 +02:00
Ell
e7fd026a33
added some UI tests
2021-04-01 19:36:56 +02:00
Ell
014b8f90df
added repeat-ignoring versions of IsKeyPressed and IsGamepadButtonPressed to InputHandler
2021-03-14 17:09:45 +01:00
Ell
eb3194a0c1
preserve position and scroll wheel value when the mouse is out of bounds
2021-02-19 02:47:32 +01:00
Ell
73eab1d41e
only handle mouse input if the mouse is in the window
2021-02-19 02:31:38 +01:00
Ell
01b6168259
fixed the input handler querying input when the window is inactive
2021-02-18 18:36:29 +01: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
1347d0bb1e
use HasFlag in InputHandler for better readability
2020-06-05 23:56:53 +02:00
Ellpeck
b237c0fcc4
added SetGesturesEnabled
2020-05-31 21:10:01 +02:00
Ellpeck
af7e22d2af
added DisableGestures to InputHandler
2020-05-31 20:49:03 +02:00
Ellpeck
d3e8a9f811
allow multiple gestures to be queried simultaneously in GetGesture
2020-05-31 20:07:10 +02:00
Ellpeck
dc48c4caa1
finished xml docs for the MLEM core package
2020-05-21 17:21:34 +02:00
Ellpeck
efed3d9e12
some controls helper methods
2020-05-04 16:41:54 +02:00