610527374e
Make use of the new consuming variants in InputHandler and Keybind to consume UiControls inputs
2022-04-30 12:14:08 +02:00
46c77d2444
Added InputHandler.InvertPressBehavior
2022-04-29 15:34:04 +02:00
f445f59078
Added consuming variants of IsPressed methods to InputHandler
2022-04-11 10:33:41 +02:00
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
bb7192b3cc
Fixed InputHandler.InputsPressed ignoring repeat events for keyboards and gamepads
2022-03-24 11:43:55 +01:00
35e3896dc1
fixed new InputHandler deadzone querying equality being inverted
2022-03-14 15:18:01 +01:00
5d97ab033f
Added GamepadExtensions.GetAnalogValue to get the analog value of any gamepad button
2022-03-14 15:15:30 +01:00
0918e1700b
made the new changes work correctly with touch input
2022-02-06 22:23: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
ab76ea5ba8
organized InputHandler properties and fields
2022-02-06 21:12:57 +01:00
29bbd61f8b
reformat and cleanup
2021-12-28 14:56:11 +01:00
abac738123
Removed LINQ Any and All usage in various methods to improve memory usage
2021-07-18 22:18:46 +02:00
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
2f16bbdc44
the None input type should always be considered up
2021-06-21 00:51:21 +02:00
ce920b5219
added an element helper method to create a keybind button
2021-06-21 00:49:09 +02:00
60c9236cbd
added InputsDown and InputsPressed to InputHandler
2021-06-20 23:05:02 +02:00
cf9bcc7ae4
updated to MonoGame 8 and added support for opening the on-screen keyboard to TextInputWrapper
2021-04-22 19:26:07 +02:00
2055c3a6ef
convert tests to use graphics
2021-04-02 17:12:27 +02:00
e7fd026a33
added some UI tests
2021-04-01 19:36:56 +02:00
014b8f90df
added repeat-ignoring versions of IsKeyPressed and IsGamepadButtonPressed to InputHandler
2021-03-14 17:09:45 +01:00
eb3194a0c1
preserve position and scroll wheel value when the mouse is out of bounds
2021-02-19 02:47:32 +01:00
73eab1d41e
only handle mouse input if the mouse is in the window
2021-02-19 02:31:38 +01:00
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
Ellpeck
90d04b8c57
this goes here
2019-09-04 21:10:51 +02:00
Ellpeck
5d701592a5
this bugged me
2019-09-04 18:52:50 +02:00
Ellpeck
16fd2af560
added keyboard repeat events
2019-09-04 18:49:59 +02:00
Ellpeck
334dea8b39
make the mess I made a bit nicer :^)
2019-09-01 19:33:33 +02:00
Ellpeck
633c5b0097
added touch compatibility to the scroll bar, which makes touch input finished!
2019-08-31 19:32:22 +02:00
Ellpeck
3862f78c9b
made text fields work on mobile too
2019-08-30 19:05:27 +02:00
Ellpeck
353afdef6f
started working on touch support for MLEM.Ui
2019-08-30 18:15:50 +02:00
Ellpeck
e04f2fbdd2
added very basic touch support to the input handler
2019-08-29 18:12:02 +02:00
Ellpeck
0668d044b6
only check input for connected gamepads to increase performance
2019-08-29 10:26:18 +02:00
Ellpeck
78273d6401
allow querying all gamepad buttons at the same time
2019-08-28 22:44:59 +02:00
Ellpeck
35fccfcd83
added generic isdown, ispressed and isup methods to InputHandler
2019-08-28 19:36:24 +02:00