mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 05:01:10 +00:00
Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods
This commit is contained in:
parent
c3f7465b7e
commit
97fecd1b69
58 changed files with 398 additions and 398 deletions
|
|
@ -89,7 +89,7 @@ bool Path2DEditor::forward_gui_input(const Ref<InputEvent> &p_event) {
|
|||
|
||||
// Check for point movement start (for point + in/out controls).
|
||||
if (mb->get_button_index() == MOUSE_BUTTON_LEFT) {
|
||||
if (mode == MODE_EDIT && !mb->get_shift() && dist_to_p < grab_threshold) {
|
||||
if (mode == MODE_EDIT && !mb->is_shift_pressed() && dist_to_p < grab_threshold) {
|
||||
// Points can only be moved in edit mode.
|
||||
|
||||
action = ACTION_MOVING_POINT;
|
||||
|
|
@ -149,7 +149,7 @@ bool Path2DEditor::forward_gui_input(const Ref<InputEvent> &p_event) {
|
|||
}
|
||||
|
||||
// Check for point creation.
|
||||
if (mb->is_pressed() && mb->get_button_index() == MOUSE_BUTTON_LEFT && ((mb->get_command() && mode == MODE_EDIT) || mode == MODE_CREATE)) {
|
||||
if (mb->is_pressed() && mb->get_button_index() == MOUSE_BUTTON_LEFT && ((mb->is_command_pressed() && mode == MODE_EDIT) || mode == MODE_CREATE)) {
|
||||
Ref<Curve2D> curve = node->get_curve();
|
||||
|
||||
undo_redo->create_action(TTR("Add Point to Curve"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue