Added missing documentation to the source code in the Playdate bindings target.
CI / Build & test (macOS) (push) Has been cancelled
CI / Embedded Swift cross-compile (push) Has been cancelled
Documentation / deploy (push) Has been cancelled

This commit is contained in:
2026-07-25 12:55:53 +02:00
parent b435a6e8bd
commit 91783deb7b
63 changed files with 259 additions and 3 deletions
@@ -1,8 +1,11 @@
extension System {
/// OS, language, and pdx version information, mirroring `PDInfo`.
public struct Info: Sendable {
/// The Playdate OS version.
public let osVersion: UInt32
/// The system language.
public let language: Language
/// The version of the game's pdx.
public let pdxVersion: UInt32
}
}
@@ -6,8 +6,11 @@ extension System {
public let rawValue: UInt32
public init(rawValue: UInt32) { self.rawValue = rawValue }
/// The battery is charging.
public static let charging = PowerStatus(rawValue: UInt32(kPDPowerStatusCharging.rawValue))
/// Power is supplied over USB.
public static let usb = PowerStatus(rawValue: UInt32(kPDPowerStatusUsb.rawValue))
/// Power is supplied through the accessory screw terminals.
public static let screws = PowerStatus(rawValue: UInt32(kPDPowerStatusScrews.rawValue))
}
}