Class Hint.GameController
- Namespace
- Sdl3Sharp
- Assembly
- Sdl3Sharp.dll
SDL_HINT_GAMECONTROLLER*
public static class Hint.GameController
- Inheritance
-
Hint.GameController
- Inherited Members
Properties
Config
Gets a hint that lets you manually hint extra gamecontroller db entries
public static Hint Config { get; }
Property Value
- Hint
A hint that lets you manually hint extra gamecontroller db entries
Remarks
The hint should be newline delimited rows of gamecontroller config data, see .h
You can update mappings after SDL is initialized with SDL_GetGamepadMappingForGUID() and SDL_AddGamepadMapping()
This hint should be set before SDL is initialized.
- See Also
ConfigFile
Gets a hint that lets you provide a file with extra gamecontroller db entries
public static Hint ConfigFile { get; }
Property Value
- Hint
A hint that lets you provide a file with extra gamecontroller db entries
Remarks
The file should contain lines of gamecontroller config data, see .h
You can update mappings after SDL is initialized with SDL_GetGamepadMappingForGUID() and SDL_AddGamepadMapping()
This hint should be set before SDL is initialized.
- See Also
IgnoreDevices
Gets a hint containing a list of devices to skip when scanning for game controllers
public static Hint IgnoreDevices { get; }
Property Value
- Hint
A hint containing a list of devices to skip when scanning for game controllers
Remarks
The format of this hint is a comma separated list of USB VID/PID pairs in hexadecimal form, e.g. "0xAAAA/0xBBBB,0xCCCC/0xDDDD".
The hint can also take the form of "@file", in which case the named file will be loaded and interpreted as the value of the hint.
This hint can be set anytime.
- See Also
IgnoreDevicesExcept
Gets a hint that if set, controls to skip all devices when scanning for game controllers except for the ones listed in this hint
public static Hint IgnoreDevicesExcept { get; }
Property Value
- Hint
A hint that if set, controls to skip all devices when scanning for game controllers except for the ones listed in this hint
Remarks
The format of this hint is a comma separated list of USB VID/PID pairs in hexadecimal form, e.g. "0xAAAA/0xBBBB,0xCCCC/0xDDDD".
The hint can also take the form of "@file", in which case the named file will be loaded and interpreted as the value of the hint.
This hint can be set anytime.
- See Also
SensorFusion
Gets a hint that controls whether the device's built-in accelerometer and gyro should be used as sensors for gamepads
public static Hint SensorFusion { get; }
Property Value
- Hint
A hint that controls whether the device's built-in accelerometer and gyro should be used as sensors for gamepads
Remarks
The hint can be set to the following values:
"0"Sensor fusion is disabled"1"Sensor fusion is enabled for all controllers that lack sensors
Or the hint can be a comma separated list of USB VID/PID pairs in hexadecimal form, e.g. "0xAAAA/0xBBBB,0xCCCC/0xDDDD".
The hint can also take the form of "@file", in which case the named file will be loaded and interpreted as the value of the hint.
This hint should be set before .
- See Also
Type
Gets a hint that overrides the automatic controller type detection
public static Hint Type { get; }
Property Value
- Hint
A hint that overrides the automatic controller type detection
Remarks
The hint should be comma separated entries, in the form: "VID/PID=type", where the VID and PID should be hexadecimal with exactly 4 digits, e.g. 0x00fd.
This hint affects what low level protocol is used with the HIDAPI driver.
The type can be set to the following values:
Xbox360XboxOnePS3PS4PS5SwitchPro
This hint should be set before SDL is initialized.
- See Also