DisplayManager
Inherits: Resource
DisplayManager is responsible for managing display settings
Description
Global display manager for managing display settings
Properties
| Type | Name | Default |
|---|---|---|
| CustomLogger | logger | |
| DisplayManager.BacklightProvider | brightness_provider | _get_backlight_provider() |
| PackedStringArray | backlights | get_backlight_paths() |
Methods
| Returns | Signature |
|---|---|
| bool | supports_brightness() |
| int | set_brightness(value: float, type: int = 0, backlight: String = "") |
| float | get_brightness(backlight_path: String) |
| int | get_brightness_value(backlight_path: String) |
| int | get_max_brightness_value(backlight_path: String) |
| PackedStringArray | get_backlight_paths() |
Property Descriptions
logger
CustomLogger logger
Note
There is currently no description for this property. Please help us by contributing one!
brightness_provider
DisplayManager.BacklightProvider brightness_provider = _get_backlight_provider()
Note
There is currently no description for this property. Please help us by contributing one!
backlights
PackedStringArray backlights = get_backlight_paths()
Note
There is currently no description for this property. Please help us by contributing one!
Method Descriptions
supports_brightness()
bool supports_brightness()
Returns true if OpenGamepadUI has access to adjust brightness
set_brightness()
int set_brightness(value: float, type: int = 0, backlight: String = "")
Sets the brightness on all discovered backlights to the given value as a percentage (e.g. 1.0 is 100% brightness)
get_brightness()
float get_brightness(backlight_path: String)
Returns the current brightness level for the given backlight as a percent
get_brightness_value()
int get_brightness_value(backlight_path: String)
Returns the current brightness value for the given backlight
get_max_brightness_value()
int get_max_brightness_value(backlight_path: String)
Returns the maximum brightness for the given backlight
get_backlight_paths()
PackedStringArray get_backlight_paths()
Returns a list of all detected backlight devices