Table of Contents

Class Hint.Joystick.Linux

Namespace
Sdl3Sharp
Assembly
Sdl3Sharp.dll

SDL_HINT_JOYSTICK_LINUX_*

public static class Hint.Joystick.Linux
Inheritance
Hint.Joystick.Linux
Inherited Members

Properties

Classic

Gets a hint controlling whether to use the classic /dev/input/js* joystick interface or the newer /dev/input/event* joystick interface on Linux

public static Hint Classic { get; }

Property Value

Hint

A hint controlling whether to use the classic /dev/input/js* joystick interface or the newer /dev/input/event* joystick interface on Linux

Remarks

The hint can be set to the following values:

  • "0"Use /dev/input/event* (default)
  • "1"Use /dev/input/js*

This hint should be set before SDL is initialized.

See Also

Deadzones

Gets a hint controlling whether joysticks on Linux adhere to their HID-defined deadzones or return unfiltered values

public static Hint Deadzones { get; }

Property Value

Hint

A hint controlling whether joysticks on Linux adhere to their HID-defined deadzones or return unfiltered values

Remarks

The hint can be set to the following values:

  • "0"Return unfiltered joystick axis values (default)
  • "1"Return axis values with deadzones taken into account

This hint should be set before .

See Also

DigitalHats

Gets a hint controlling whether joysticks on Linux will always treat 'hat' axis inputs (ABS_HAT0X - ABS_HAT3Y) as 8-way digital hats without checking whether they may be analog

public static Hint DigitalHats { get; }

Property Value

Hint

A hint controlling whether joysticks on Linux will always treat 'hat' axis inputs (ABS_HAT0X - ABS_HAT3Y) as 8-way digital hats without checking whether they may be analog

Remarks

The hint can be set to the following values:

  • "0"Only map hat axis inputs to digital hat outputs if the input axes appear to actually be digital (default)
  • "1"Always handle the input axes numbered ABS_HAT0X to ABS_HAT3Y as digital hats

This hint should be set before .

See Also

HatDeadzones

Gets a hint controlling whether digital hats on Linux will apply deadzones to their underlying input axes or use unfiltered values

public static Hint HatDeadzones { get; }

Property Value

Hint

A hint controlling whether digital hats on Linux will apply deadzones to their underlying input axes or use unfiltered values

Remarks

The hint can be set to the following values:

  • "0"Return digital hat values based on unfiltered input axis values
  • "1"Return digital hat values with deadzones on the input axes taken into account (default)

This hint should be set before .

See Also