mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 14:10:55 +03:00
Fixes for rename from fixed to physics
This commit is contained in:
@@ -14,7 +14,7 @@ var axis_value
|
||||
|
||||
const DEADZONE = 0.2
|
||||
|
||||
func _fixed_process(delta):
|
||||
func _physics_process(delta):
|
||||
# Get the joypad device number from the spinbox
|
||||
joy_num = get_node("device_info/joy_num").get_value()
|
||||
|
||||
@@ -48,7 +48,7 @@ func _fixed_process(delta):
|
||||
get_node("diagram/buttons/" + str(btn)).hide()
|
||||
|
||||
func _ready():
|
||||
set_fixed_process(true)
|
||||
set_physics_process(true)
|
||||
Input.connect("joy_connection_changed", self, "_on_joy_connection_changed")
|
||||
|
||||
#Called whenever a joypad has been connected or disconnected.
|
||||
|
||||
@@ -5,7 +5,7 @@ var mousepos
|
||||
|
||||
onready var observer = $"../Observer"
|
||||
|
||||
func _fixed_process(delta):
|
||||
func _physics_process(delta):
|
||||
var modetext = "Mode:\n"
|
||||
|
||||
if (OS.is_window_fullscreen()):
|
||||
@@ -126,7 +126,7 @@ func check_wm_api():
|
||||
|
||||
func _ready():
|
||||
if (not check_wm_api()):
|
||||
set_fixed_process(false)
|
||||
set_physics_process(false)
|
||||
set_process_input(false)
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ func direction(vector):
|
||||
return v
|
||||
|
||||
|
||||
func _fixed_process(delta):
|
||||
func _physics_process(delta):
|
||||
if (state != STATE_GRAB):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user