Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.5] Input -> "Get Controller Color" function for GDScript #13

Open
halotroop2288 opened this issue Jan 25, 2024 · 0 comments
Open

[3.5] Input -> "Get Controller Color" function for GDScript #13

halotroop2288 opened this issue Jan 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@halotroop2288
Copy link
Member

halotroop2288 commented Jan 25, 2024

int get_color();
int get_joy_color(int p_device);
  • By default, this method should return white for all 8 controllers.
  • On Nintendo Switch, controller color should be retrieved from the actual controller metadata.
  • On PS4, or PC the color can be grabbed from the DualShock 4 light bar.
  • On other platforms, the color schemes can be overridden with constant values.
  • Such as on Wii, where the color scheme looks like:
    • Player 1: Blue
    • Player 2: Red
    • Player 3: Green
    • Player 4: Yellow
    • Players 5-8: White (N/A)
@halotroop2288 halotroop2288 self-assigned this Jan 25, 2024
@halotroop2288 halotroop2288 added the enhancement New feature or request label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant