virtualx-engine/main
EricEzaM 0e5c6e0d55 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)
```

Co-authored-by: Eric M <itsjusteza@gmail.com>
2021-07-30 15:35:39 +02:00
..
tests Use modules_enabled.gen.h to improve inter dependency checks 2021-07-14 23:36:38 +02:00
app_icon.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
default_controller_mappings.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gamecontrollerdb.txt Sync controller mappings DB with SDL2 community repo 2021-07-20 13:20:40 +02:00
godotcontrollerdb.txt [HTML5] Add 2 controllers to the godot database. 2021-07-20 13:05:10 +02:00
input_default.cpp Allow checking for exact matches with Action events. 2021-07-30 15:35:39 +02:00
input_default.h Allow checking for exact matches with Action events. 2021-07-30 15:35:39 +02:00
main.cpp Add option to sync frame delta after draw 2021-07-22 12:04:22 +01:00
main.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
main_builders.py Tweak the editor splash screen color to better match the default theme 2021-03-19 10:51:39 +01:00
main_timer_sync.cpp Add frame delta smoothing option 2021-07-14 08:44:31 +01:00
main_timer_sync.h Add frame delta smoothing option 2021-07-14 08:44:31 +01:00
performance.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
performance.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
splash.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2019-10-12 23:23:33 +02:00
splash_editor.png Update AUTHORS and DONORS list 2020-10-28 15:09:17 +01:00