From 8c4f19e79d3e8ac8bc8c283073dce5ccfbf222b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 21 Nov 2015 13:31:25 +0100 Subject: Use upper-cased first letter at the start of comment sentences --- demos/misc/joysticks/joysticks.gd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'demos/misc/joysticks') 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)): -- cgit v1.2.3