Skip to main content

Module platform

Module platform 

Source
Expand description

Provides abstractions over platform-specific functionalities.

This module contains traits and types that define a common, engine-wide interface for interacting with the underlying operating system and its features, such as windowing, input, and filesystem access.

Re-exports§

pub use input::InputEvent;
pub use input::KeyCode;
pub use input::MouseButton;
pub use input_map::Action;
pub use input_map::InputBinding;
pub use input_map::InputMap;
pub use window::KhoraWindow;
pub use window::KhoraWindowHandle;
pub use window::WindowHandle;

Modules§

input
Abstract input event types used by the engine core.
input_map
Action / binding abstraction over raw InputEvents.
window
Defines the KhoraWindow trait and related types for windowing abstraction.

Enums§

BatteryLevel
Represents the power source and battery level.
ThermalStatus
Represents the thermal state of the device.

Traits§

HardwareMonitor
Trait for observing the physical state of the host platform.