Ell
30bcdc1710
Allow comparing Keybind and Combination based on the amount of modifiers they have
2022-05-18 18:50:00 +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
4a88cca8bf
also added consuming variants of IsPressed to Keybind
2022-04-30 11:38:05 +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
ae6ce6e7d5
Added properties and constructors for existing operator overloads to GenericInput
2022-03-26 12:51:14 +01: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
48a4aa0588
Some keybind and keybind button improvements
2022-03-10 12:39:56 +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
c0ce5a07ad
Implemented IEquatable on a lot of classes that were missing it
2021-12-21 11:39:29 +01:00
Ell
636522bc3e
resolved some documentation warnings
2021-11-30 11:46:06 +01:00
Ell
444b5c6afb
copy base documentation for a lot of docfx unresolvable sources
2021-11-22 19:25:18 +01:00
Ell
6537ff00c1
Improved KeysExtensions memory usage
2021-08-27 20:36:04 +02: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
6aa9ec03d4
Added customizable overloads for Keybind, Combination and GenericInput ToString methods
2021-07-13 15:41:42 +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
dca013e551
fixed GetModifier being.. recursive
2021-06-21 01:03:24 +02:00
Ell
91730b1f27
improved GenericInput ToString
2021-06-21 00:57:56 +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
a5a73af01c
improved Keybind constructors
2021-06-20 23:48:02 +02:00
Ell
2118837062
added generic input equality checking
2021-06-20 23:17:39 +02:00
Ell
60c9236cbd
added InputsDown and InputsPressed to InputHandler
2021-06-20 23:05:02 +02:00
Ell
664a2a9f11
added a way to access a keybind's combinations
2021-06-20 22:33:24 +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