bitflag enum io.HidRdItemMask
bitflag enum HidRdItemMask {
UsagePage = 1<<HidRdItemId.UsagePage,
LogicalMinimum = 1<<HidRdItemId.LogicalMinimum,
LogicalMaximum = 1<<HidRdItemId.LogicalMaximum,
PhysicalMinimum = 1<<HidRdItemId.PhysicalMinimum,
PhysicalMaximum = 1<<HidRdItemId.PhysicalMaximum,
UnitExponent = 1<<HidRdItemId.UnitExponent,
Unit = 1<<HidRdItemId.Unit,
ReportSize = 1<<HidRdItemId.ReportSize,
ReportId = 1<<HidRdItemId.ReportId,
ReportCount = 1<<HidRdItemId.ReportCount,
Usage = 1<<HidRdItemId.Usage,
UsageMinimum = 1<<HidRdItemId.UsageMinimum,
UsageMaximum = 1<<HidRdItemId.UsageMaximum,
DesignatorIndex = 1<<HidRdItemId.DesignatorIndex,
DesignatorMinimum = 1<<HidRdItemId.DesignatorMinimum,
DesignatorMaximum = 1<<HidRdItemId.DesignatorMaximum,
String = 1<<HidRdItemId.String,
StringMinimum = 1<<HidRdItemId.StringMinimum,
StringMaximum = 1<<HidRdItemId.StringMaximum,
Delimiter = 1<<HidRdItemId.Delimiter,
AllGlobals =(1<<(HidRdItemId.ReportCount + 1)) - 1,
AllLocals =((1<<(HidRdItemId.Delimiter + 1)) - 1)& ~((1<<HidRdItemId.Usage) - 1),
AllUsages = Usage | UsageMinimum | UsageMaximum,
};