Added missing documentation to the source code in the Playdate bindings target.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user