diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2015-11-21 13:31:25 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2015-12-09 08:39:12 +0100 |
commit | 8c4f19e79d3e8ac8bc8c283073dce5ccfbf222b5 (patch) | |
tree | c1124b6d4957389006024d1e1baa5de56e207fec /demos/misc/joysticks | |
parent | 8639cecf4cedd56452b47503be19c44b304cd02f (diff) |
Use upper-cased first letter at the start of comment sentences
Diffstat (limited to 'demos/misc/joysticks')
-rw-r--r-- | demos/misc/joysticks/joysticks.gd | 10 |
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)): |