Table of Contents

Class Hint.Joystick.HidApi.Switch

Namespace
Sdl3Sharp
Assembly
Sdl3Sharp.dll

SDL_HINT_JOYSTICK_HIDAPI_SWITCH_*

public static class Hint.Joystick.HidApi.Switch
Inheritance
Hint.Joystick.HidApi.Switch
Inherited Members

Remarks

For the hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH ("SDL_JOYSTICK_HIDAPI_SWITCH") see UseDriver.

Properties

HomeLed

Gets a hint controlling whether the Home button LED should be turned on when a Nintendo Switch Pro controller is opened

public static Hint HomeLed { get; }

Property Value

Hint

A hint controlling whether the Home button LED should be turned on when a Nintendo Switch Pro controller is opened

Remarks

The hint can be set to the following values:

  • "0"Home button LED is turned off
  • "1"Home button LED is turned on

By default the Home button LED state is not changed. This hint can also be set to a floating point value between 0.0 and 1.0 which controls the brightness of the Home button LED.

This hint can be set anytime.

See Also

PlayerLed

Gets a hint controlling whether the player LEDs should be lit to indicate which player is associated with a Nintendo Switch controller

public static Hint PlayerLed { get; }

Property Value

Hint

A hint controlling whether the player LEDs should be lit to indicate which player is associated with a Nintendo Switch controller

Remarks

The hint can be set to the following values:

  • "0"Player LEDs are not enabled
  • "1"Player LEDs are enabled (default)

This hint can be set anytime.

See Also

UseDriver

Gets a hint controlling whether the HIDAPI driver for Nintendo Switch controllers should be used

public static Hint UseDriver { get; }

Property Value

Hint

A hint controlling whether the HIDAPI driver for Nintendo Switch controllers should be used

Remarks

The hint can be set to the following values:

  • "0"HIDAPI driver is not used
  • "1"HIDAPI driver is used

The default value for this hint is the value of UseDrivers.

This hint should be set before initializing joysticks and gamepads (either by initializing SDL or by initializing them on their own).

See Also