summaryrefslogtreecommitdiff
path: root/demos/misc/joysticks
diff options
context:
space:
mode:
Diffstat (limited to 'demos/misc/joysticks')
-rw-r--r--demos/misc/joysticks/joysticks.gd10
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/misc/joysticks/joysticks.gd b/demos/misc/joysticks/joysticks.gd
index dc9166e49e..7add88573d 100644
--- a/demos/misc/joysticks/joysticks.gd
+++ b/demos/misc/joysticks/joysticks.gd
@@ -8,7 +8,7 @@ extends Node2D
#
# Licensed under the MIT license
-# member variables
+# Member variables
var joy_num
var cur_joy
var axis_value
@@ -16,21 +16,21 @@ var btn_state
func _input(event):
- # get the joystick device number from the spinbox
+ # Get the joystick device number from the spinbox
joy_num = get_node("joy_num").get_value()
- # display the name of the joystick if we haven't already
+ # Display the name of the joystick if we haven't already
if joy_num != cur_joy:
cur_joy = joy_num
get_node("joy_name").set_text(Input.get_joy_name(joy_num))
- # loop through the axes and show their current values
+ # Loop through the axes and show their current values
for axis in range(0, 8):
axis_value = Input.get_joy_axis(joy_num, axis)
get_node("axis_prog" + str(axis)).set_value(100*axis_value)
get_node("axis_val" + str(axis)).set_text(str(axis_value))
- # loop through the buttons and highlight the ones that are pressed
+ # Loop through the buttons and highlight the ones that are pressed
for btn in range(0, 17):
btn_state = 1
if (Input.is_joy_button_pressed(joy_num, btn)):