Skip to content

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

@halotroop2288

Description

@halotroop2288
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions