Skip to content

Commit

Permalink
fix(GitHub): Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: William Edwards <[email protected]>
  • Loading branch information
pastaq and ShadowApex committed Aug 8, 2024
1 parent 04acf6a commit 17c6ceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/global/launch_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ func set_app_gamepad_profile(app: RunningApp) -> void:
## Sets the gamepad profile for the running app with the given profile
func set_gamepad_profile(path: String, target_gamepad: String = "") -> void:
# Discover the currently set gamepad to properly add additional capabilities based on that gamepad
var profile_modifier = target_gamepad
var profile_modifier := target_gamepad
if target_gamepad.is_empty():
profile_modifier = settings_manager.get_value("input", "gamepad_profile_target", InputPlumber.DEFAULT_GLOBAL_PROFILE) as String
profile_modifier = settings_manager.get_value("input", "gamepad_profile_target", "gamepad") as String

# If no profile was specified, unset the gamepad profiles
if path == "":
Expand Down
2 changes: 0 additions & 2 deletions core/systems/input/events/event.gd
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ static func from_event(godot_event: InputEvent) -> InputPlumberEvent:
return null
elif godot_event is InputEventAction:
return null
elif godot_event is InputEventAction:
return null

return null

Expand Down

0 comments on commit 17c6ceb

Please sign in to comment.