summaryrefslogtreecommitdiff
path: root/core/input
AgeCommit message (Collapse)Author
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-03[Web] Add PS3 gamepad mapping for FF+Linux.Fabio Alessandrelli
2022-09-30ci: add Python static analysis check via mypyJiri Suchan
2022-09-27Sync controller mappings DB with SDL2 community repoRémi Verschelde
Synced with gabomdq/SDL_GameControllerDB@81ddc73d17b703b68c9142b46106a4db7c0d98c3
2022-09-25Merge pull request #63109 from OverloadedOrama/fix-input-event-actionRémi Verschelde
Fix `InputEventAction`'s `is_match` method ignoring `exact_match` parameter
2022-09-07Fix key mapping changes when moving from macOS to other platformbruvzg
Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
2022-09-05Updated gamecontrollerdb.txt to latest to include new mappings for various ↵Andres Hernandez
controllers, including Xbox One, Nintendo Switch, Steam Deck, and 8BitDo
2022-09-01Merge pull request #64444 from timothyqiu/action-completionRémi Verschelde
Fix action name completion for `Input`
2022-08-29[Web] Rename JavaScript platform to Web.Fabio Alessandrelli
Also rename export name from "HTML5" to "Web".
2022-08-24Merge pull request #64531 from madmiraal/fix-63972-2Rémi Verschelde
Fix axis mapped to DPad buttons not releasing opposite button
2022-08-23Replace Array return types with TypedArray 2kobewi
2022-08-23Merge pull request #64732 from RandomShaper/input_is_finalRémi Verschelde
Consolidate the fact that `Input` is meant to be final
2022-08-22Make `_validate_property` a multilevel methodYuri Sizov
2022-08-22Consolidate the fact that `Input` is meant to be finalPedro J. Estébanez
This reverts #38034 and removes the `iteration()` method.
2022-08-17Fix axis mapped to DPad buttons not releasing opposite buttonMarcel Admiraal
2022-08-15Fix action name completion for `Input`Haoyu Qiu
2022-08-07Use %s for bool value in vformatHaoyu Qiu
2022-08-05Sync controller mappings DB with SDL2 community repoRémi Verschelde
Synced with gabomdq/SDL_GameControllerDB@4896d2de6bac388b5f8f8a42d0c39c5892bd5847
2022-08-04Fix some array size function definition mismatch.Fabio Alessandrelli
2022-07-25Code quality: Fix header guards consistencyRémi Verschelde
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
2022-07-21Rename OSX to macOS and iPhoneOS to iOS.bruvzg
2022-07-18Sync controller mappings DB with SDL2 community repoRémi Verschelde
Synced with gabomdq/SDL_GameControllerDB@880abd09c97618d97a0e44e3761262f6fd1c6225
2022-07-17Fix `InputEventAction`'s `is_action` method ignoring `exact_match` parameterEmmanouil Papadeas
2022-07-04Merge pull request #62212 from hansemro/eraser-detect-4Rémi Verschelde
Add inversion/eraser-end property for tablet pens
2022-07-04[macOS, Windows, X11] Add stylus inverted/eraser support toHansem Ro
InputEventMouseMotion event
2022-07-03Input: Re-enable input accumulation by defaultRémi Verschelde
I turned it off by mistake in #38697. See also #62664 for details on this boolean's complex history :)
2022-06-28Input: Make `get_action_raw_strength` print error when the action doesn't existMarco F
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-06-04Merge pull request #61669 from fire-forge/inputRémi Verschelde
Make Input `mouse_mode` and `use_accumulated_input` properties
2022-06-03Make Input mouse_mode and use_accumulated_input propertiesFireForge
2022-06-03Add array element type to `get_connected_joypads`Raul Santos
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-12Add a new HashMap implementationreduz
Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
2022-05-05Sync controller mappings DB with SDL2 community repoRémi Verschelde
Synced with gabomdq/SDL_GameControllerDB@b7d126eb71fe9354a2b7cf04085a5fff58ed3815
2022-05-03Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
2022-05-02Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde
Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
2022-04-22Use Input::push_input for tests plus extra mouse testingPaulb23
2022-04-14Merge pull request #60208 from Magorx/input-set-custom-mouse-cursor-fixRémi Verschelde
Added p_shape check to avoid engine crash in DisplayServer
2022-04-13Added p_shape check to avoid engine crushKingCakeTheFruity
2022-04-06Fix some issues found by cppcheck.bruvzg
2022-03-28String: Remove TTR and DTR defines in non-tools buildRémi Verschelde
This ensures we don't use TTR in runtime code, as it's specifically meant to source translations for the editor.
2022-03-27Rename warp mouse functions to warp_mouseMarkus Sauermann
2022-03-20Ensure minimum modifiers are pressed when matching actionsMarcel Admiraal
2022-03-02Remove `TTRC()` with empty stringHaoyu Qiu
Fixes "duplicate message definition" when extracting messages.
2022-02-20Sync controller mappings DB with SDL2 community repoRémi Verschelde
Synced with gabomdq/SDL_GameControllerDB@94b76208bc07a62a63575bc16da99411d325aac8
2022-02-19[HTML5] Add Stadia controller to databasePowerbyte7
Add web support for the Stadia controller.
2022-02-16Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
2022-02-03Merge pull request #56764 from madmiraal/fix-45592-2Rémi Verschelde
2022-01-29simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke