#![allow(deprecated)]
use bytemuck::{Pod, Zeroable};
use winapi::um::xinput::*;
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[derive(Pod, Zeroable)]
#[repr(transparent)] pub struct BatteryType(u8);
enumish! { BatteryType => u8; default: Disconnected == 0; Disconnected, Wired, Alkaline, NiMH, Unknown }
#[allow(non_upper_case_globals)] impl BatteryType {
pub const Disconnected : BatteryType = BatteryType(BATTERY_TYPE_DISCONNECTED as _);
pub const Wired : BatteryType = BatteryType(BATTERY_TYPE_WIRED as _);
pub const Alkaline : BatteryType = BatteryType(BATTERY_TYPE_ALKALINE as _);
pub const NiMH : BatteryType = BatteryType(BATTERY_TYPE_NIMH as _);
#[deprecated = "Are you sure you want to use this? New BATTERY_TYPE_* enumerations may be added at a later date..."]
pub const Unknown : BatteryType = BatteryType(BATTERY_TYPE_UNKNOWN as _); }