Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Fix inverted player controls#19

Merged
Vianpyro merged 2 commits intomainfrom
fix/inverted_player_controls
Oct 29, 2025
Merged

Fix inverted player controls#19
Vianpyro merged 2 commits intomainfrom
fix/inverted_player_controls

Conversation

@Vianpyro
Copy link
Owner

Description

Fixed inverted player controls. The left player now correctly uses W/S, and the right player uses Up/Down, matching standard Pong controls.

Related Issues

Changes Made

  • Corrected conditional in player controller assignment:
    • Changed if player == Player::Right to if player == Player::Left
  • Verified both players’ input mappings correspond to their on-screen sides

Screenshots (if applicable)

N/A -- gameplay behavior fix only.

How to Test

  1. Launch the game.
  2. Move the left paddle using W and S.
  3. Move the right paddle using Up and Down.
  4. Confirm each player’s controls respond correctly and independently.

Checklist

  • My code follows the project's coding style.
  • I have performed a self-review of my code.
  • I have tested the fix manually.
  • I have documented my changes (if necessary).

Additional Context

Simple one-line fix to align player input mapping with expected behavior.

@Vianpyro Vianpyro self-assigned this Oct 29, 2025
@Vianpyro Vianpyro merged commit 736ce99 into main Oct 29, 2025
17 checks passed
@Vianpyro Vianpyro deleted the fix/inverted_player_controls branch October 29, 2025 02:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The player controls are inverted

1 participant