mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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
|
|
@ -168,8 +168,8 @@ void CurveEditor::on_gui_input(const Ref<InputEvent> &p_event) {
|
|||
// Snap to "round" coordinates when holding Ctrl.
|
||||
// Be more precise when holding Shift as well.
|
||||
float snap_threshold;
|
||||
if (mm.get_control()) {
|
||||
snap_threshold = mm.get_shift() ? 0.025 : 0.1;
|
||||
if (mm.is_ctrl_pressed()) {
|
||||
snap_threshold = mm.is_shift_pressed() ? 0.025 : 0.1;
|
||||
} else {
|
||||
snap_threshold = 0.0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue