Platform
Inherits: Resource
Platform specific methods
Description
Used to perform platform-specific functions
Properties
| Type | Name | Default |
|---|---|---|
| HardwareManager | hardware_manager | |
| Platform.OSInfo | os_info | _detect_os() |
| OSPlatform | os | |
| PlatformProvider | platform | |
| CustomLogger | logger | |
| bool | loaded |
Methods
| Returns | Signature |
|---|---|
| void | load(root: Window) |
| int[] | get_platform_flags() |
Property Descriptions
hardware_manager
HardwareManager hardware_manager
Note
There is currently no description for this property. Please help us by contributing one!
os_info
Platform.OSInfo os_info = _detect_os()
Detected Operating System information
os
OSPlatform os
The OS platform provider detected
platform
PlatformProvider platform
The hardware platform provider detected
logger
CustomLogger logger
Note
There is currently no description for this property. Please help us by contributing one!
loaded
bool loaded
Note
There is currently no description for this property. Please help us by contributing one!
Method Descriptions
load()
void load(root: Window)
Loads the detected platforms. This should be called once when OpenGamepadUI first starts. It takes the root window to give platform providers the opportinity to modify the scene tree.
get_platform_flags()
int[] get_platform_flags()
Returns all detected platform flags