[][src]Constant fermium::hints::SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS

pub const SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS: &[u8];

If set, game controller face buttons report their values according to their labels instead of their positional layout.

For example, on Nintendo Switch controllers, normally you'd get:

   (Y)
(X)   (B)
   (A)

but if this hint is set, you'll get:

   (X)
(Y)   (A)
   (B)

The variable can be set to the following values:

  • "0": Report the face buttons by position, as though they were on an Xbox controller.
  • "1": Report the face buttons by label instead of position.

The default value is "1". This hint may be set at any time.