virtualx-engine/core
EricEzaM b2f032e1a5 Allow checking for exact matches with Action events.
Added additional param to action related methods to test for exactness.
If "p_exact_match" is true, then the action will only be "matched" if the provided input event *exactly* matches with the action event.

Before:
* Action Event = KEY_S
* Input Event = KEY_CONTROL + KEY_S
* Is Action Pressed = True

Now:
You can still do the above, however you can optionally check that the input is exactly what the action event is:
* Action Event = KEY_S
* Input Event = KEY_CONTROL + KEY_S
* p_exact_match = True
* Is Action Pressed = False
* If the Input Event was only KEY_S, then the result would be true.

Usage:

```gdscript
Input.is_action_pressed(action_name: String, exact_match: bool)
Input.is_action_pressed("my_action", true)

InputMap.event_is_action(p_event, "my_action", true)

func _input(event: InputEvent):
  event.is_action_pressed("my_action", false, true) # false = "allow_echo", true = "exact_match"
  event.is_action("my_action", true)
```
2020-12-15 09:14:18 +10:00
..
config Fix .pck lookup for extensionless binary in macOS resources. 2020-12-02 11:04:44 +02:00
crypto feat: HMAC support in Crypto APIs 2020-11-26 18:39:56 -08:00
debugger Merge pull request #43730 from qarmin/core_drivers_default_values 2020-11-24 13:00:27 +01:00
error Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
input Allow checking for exact matches with Action events. 2020-12-15 09:14:18 +10:00
io Image: Rename PVRTC{2,4} to PVRTC1_{2,4}, drop COMPRESS_PVRTC2 2020-12-10 23:14:04 +01:00
math Merge pull request #44128 from KoBeWi/🧹 2020-12-09 13:01:50 +01:00
object Merge pull request #44128 from KoBeWi/🧹 2020-12-09 13:01:50 +01:00
os wrong double quote output with .csv fixed 2020-12-11 11:42:43 +01:00
string Static analyzer fixes: 2020-12-09 10:17:53 +02:00
templates Reorganize rendering server. 2020-12-03 19:01:01 -03:00
variant Improve argument names for core types 2020-12-07 05:01:33 -05:00
core_bind.cpp Initialize class/struct variables with default values in core/ and drivers/ 2020-11-23 17:38:46 +01:00
core_bind.h Initialize class/struct variables with default values in core/ and drivers/ 2020-11-23 17:38:46 +01:00
core_builders.py Update AUTHORS and DONORS list 2020-08-14 00:06:51 +02:00
core_constants.cpp Rename TYPE_REAL to TYPE_FLOAT 2020-12-04 09:47:26 -03:00
core_constants.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
core_string_names.cpp Add ability to bind an unbind arguments to Callable. 2020-10-09 19:43:22 -03:00
core_string_names.h Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
doc_data.cpp Refactor DocData into core and editor (DocTools) parts 2020-12-02 00:48:39 +05:30
doc_data.h Initialize class/struct variables with default values in platform/ and editor/ 2020-12-02 16:09:11 +01:00
register_core_types.cpp feat: HMAC support in Crypto APIs 2020-11-26 18:39:56 -08:00
register_core_types.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
SCsub Don't handle BaseException in build scripts 2020-12-12 10:05:42 +00:00
typedefs.h Fix SGN macro 2020-11-27 13:02:12 -06:00
version.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00