1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-13 12:48:45 +02:00
Commit graph

64 commits

Author SHA1 Message Date
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
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 0904368151 Revert "changed text input style to work on all devices including web"
This reverts commit 053724e4
2020-02-01 21:16:10 +01:00
Ellpeck 053724e4f8 changed text input style to work on all devices including web 2020-02-01 20:50:42 +01:00
Ellpeck ff42233222 made input handler and ui system gamecomponents 2019-12-05 17:52:25 +01:00
Ellpeck ff68816b05 make these readonly 2019-09-10 11:41:13 +02:00
Ellpeck c1726e4f1b added gamepad repeat events 2019-09-09 20:56:10 +02:00
Ellpeck 3f0e0cf6d3 fixed the input handler not recognizing gamepads properly 2019-09-09 15:22:15 +02:00