use CONSTANT:

db4
Doug Coleman 2009-02-22 17:52:27 -06:00
parent f7165e115e
commit 917296670d
1 changed files with 94 additions and 94 deletions

View File

@ -2,117 +2,117 @@ USING: iokit alien alien.syntax alien.c-types kernel
system core-foundation ; system core-foundation ;
IN: iokit.hid IN: iokit.hid
: kIOHIDDeviceKey "IOHIDDevice" ; inline CONSTANT: kIOHIDDeviceKey "IOHIDDevice"
: kIOHIDTransportKey "Transport" ; inline CONSTANT: kIOHIDTransportKey "Transport"
: kIOHIDVendorIDKey "VendorID" ; inline CONSTANT: kIOHIDVendorIDKey "VendorID"
: kIOHIDVendorIDSourceKey "VendorIDSource" ; inline CONSTANT: kIOHIDVendorIDSourceKey "VendorIDSource"
: kIOHIDProductIDKey "ProductID" ; inline CONSTANT: kIOHIDProductIDKey "ProductID"
: kIOHIDVersionNumberKey "VersionNumber" ; inline CONSTANT: kIOHIDVersionNumberKey "VersionNumber"
: kIOHIDManufacturerKey "Manufacturer" ; inline CONSTANT: kIOHIDManufacturerKey "Manufacturer"
: kIOHIDProductKey "Product" ; inline CONSTANT: kIOHIDProductKey "Product"
: kIOHIDSerialNumberKey "SerialNumber" ; inline CONSTANT: kIOHIDSerialNumberKey "SerialNumber"
: kIOHIDCountryCodeKey "CountryCode" ; inline CONSTANT: kIOHIDCountryCodeKey "CountryCode"
: kIOHIDLocationIDKey "LocationID" ; inline CONSTANT: kIOHIDLocationIDKey "LocationID"
: kIOHIDDeviceUsageKey "DeviceUsage" ; inline CONSTANT: kIOHIDDeviceUsageKey "DeviceUsage"
: kIOHIDDeviceUsagePageKey "DeviceUsagePage" ; inline CONSTANT: kIOHIDDeviceUsagePageKey "DeviceUsagePage"
: kIOHIDDeviceUsagePairsKey "DeviceUsagePairs" ; inline CONSTANT: kIOHIDDeviceUsagePairsKey "DeviceUsagePairs"
: kIOHIDPrimaryUsageKey "PrimaryUsage" ; inline CONSTANT: kIOHIDPrimaryUsageKey "PrimaryUsage"
: kIOHIDPrimaryUsagePageKey "PrimaryUsagePage" ; inline CONSTANT: kIOHIDPrimaryUsagePageKey "PrimaryUsagePage"
: kIOHIDMaxInputReportSizeKey "MaxInputReportSize" ; inline CONSTANT: kIOHIDMaxInputReportSizeKey "MaxInputReportSize"
: kIOHIDMaxOutputReportSizeKey "MaxOutputReportSize" ; inline CONSTANT: kIOHIDMaxOutputReportSizeKey "MaxOutputReportSize"
: kIOHIDMaxFeatureReportSizeKey "MaxFeatureReportSize" ; inline CONSTANT: kIOHIDMaxFeatureReportSizeKey "MaxFeatureReportSize"
: kIOHIDReportIntervalKey "ReportInterval" ; inline CONSTANT: kIOHIDReportIntervalKey "ReportInterval"
: kIOHIDElementKey "Elements" ; inline CONSTANT: kIOHIDElementKey "Elements"
: kIOHIDElementCookieKey "ElementCookie" ; inline CONSTANT: kIOHIDElementCookieKey "ElementCookie"
: kIOHIDElementTypeKey "Type" ; inline CONSTANT: kIOHIDElementTypeKey "Type"
: kIOHIDElementCollectionTypeKey "CollectionType" ; inline CONSTANT: kIOHIDElementCollectionTypeKey "CollectionType"
: kIOHIDElementUsageKey "Usage" ; inline CONSTANT: kIOHIDElementUsageKey "Usage"
: kIOHIDElementUsagePageKey "UsagePage" ; inline CONSTANT: kIOHIDElementUsagePageKey "UsagePage"
: kIOHIDElementMinKey "Min" ; inline CONSTANT: kIOHIDElementMinKey "Min"
: kIOHIDElementMaxKey "Max" ; inline CONSTANT: kIOHIDElementMaxKey "Max"
: kIOHIDElementScaledMinKey "ScaledMin" ; inline CONSTANT: kIOHIDElementScaledMinKey "ScaledMin"
: kIOHIDElementScaledMaxKey "ScaledMax" ; inline CONSTANT: kIOHIDElementScaledMaxKey "ScaledMax"
: kIOHIDElementSizeKey "Size" ; inline CONSTANT: kIOHIDElementSizeKey "Size"
: kIOHIDElementReportSizeKey "ReportSize" ; inline CONSTANT: kIOHIDElementReportSizeKey "ReportSize"
: kIOHIDElementReportCountKey "ReportCount" ; inline CONSTANT: kIOHIDElementReportCountKey "ReportCount"
: kIOHIDElementReportIDKey "ReportID" ; inline CONSTANT: kIOHIDElementReportIDKey "ReportID"
: kIOHIDElementIsArrayKey "IsArray" ; inline CONSTANT: kIOHIDElementIsArrayKey "IsArray"
: kIOHIDElementIsRelativeKey "IsRelative" ; inline CONSTANT: kIOHIDElementIsRelativeKey "IsRelative"
: kIOHIDElementIsWrappingKey "IsWrapping" ; inline CONSTANT: kIOHIDElementIsWrappingKey "IsWrapping"
: kIOHIDElementIsNonLinearKey "IsNonLinear" ; inline CONSTANT: kIOHIDElementIsNonLinearKey "IsNonLinear"
: kIOHIDElementHasPreferredStateKey "HasPreferredState" ; inline CONSTANT: kIOHIDElementHasPreferredStateKey "HasPreferredState"
: kIOHIDElementHasNullStateKey "HasNullState" ; inline CONSTANT: kIOHIDElementHasNullStateKey "HasNullState"
: kIOHIDElementFlagsKey "Flags" ; inline CONSTANT: kIOHIDElementFlagsKey "Flags"
: kIOHIDElementUnitKey "Unit" ; inline CONSTANT: kIOHIDElementUnitKey "Unit"
: kIOHIDElementUnitExponentKey "UnitExponent" ; inline CONSTANT: kIOHIDElementUnitExponentKey "UnitExponent"
: kIOHIDElementNameKey "Name" ; inline CONSTANT: kIOHIDElementNameKey "Name"
: kIOHIDElementValueLocationKey "ValueLocation" ; inline CONSTANT: kIOHIDElementValueLocationKey "ValueLocation"
: kIOHIDElementDuplicateIndexKey "DuplicateIndex" ; inline CONSTANT: kIOHIDElementDuplicateIndexKey "DuplicateIndex"
: kIOHIDElementParentCollectionKey "ParentCollection" ; inline CONSTANT: kIOHIDElementParentCollectionKey "ParentCollection"
: kIOHIDElementVendorSpecificKey ( -- str ) : kIOHIDElementVendorSpecificKey ( -- str )
cpu ppc? "VendorSpecifc" "VendorSpecific" ? ; inline cpu ppc? "VendorSpecifc" "VendorSpecific" ? ; inline
: kIOHIDElementCookieMinKey "ElementCookieMin" ; inline CONSTANT: kIOHIDElementCookieMinKey "ElementCookieMin"
: kIOHIDElementCookieMaxKey "ElementCookieMax" ; inline CONSTANT: kIOHIDElementCookieMaxKey "ElementCookieMax"
: kIOHIDElementUsageMinKey "UsageMin" ; inline CONSTANT: kIOHIDElementUsageMinKey "UsageMin"
: kIOHIDElementUsageMaxKey "UsageMax" ; inline CONSTANT: kIOHIDElementUsageMaxKey "UsageMax"
: kIOHIDElementCalibrationMinKey "CalibrationMin" ; inline CONSTANT: kIOHIDElementCalibrationMinKey "CalibrationMin"
: kIOHIDElementCalibrationMaxKey "CalibrationMax" ; inline CONSTANT: kIOHIDElementCalibrationMaxKey "CalibrationMax"
: kIOHIDElementCalibrationSaturationMinKey "CalibrationSaturationMin" ; inline CONSTANT: kIOHIDElementCalibrationSaturationMinKey "CalibrationSaturationMin"
: kIOHIDElementCalibrationSaturationMaxKey "CalibrationSaturationMax" ; inline CONSTANT: kIOHIDElementCalibrationSaturationMaxKey "CalibrationSaturationMax"
: kIOHIDElementCalibrationDeadZoneMinKey "CalibrationDeadZoneMin" ; inline CONSTANT: kIOHIDElementCalibrationDeadZoneMinKey "CalibrationDeadZoneMin"
: kIOHIDElementCalibrationDeadZoneMaxKey "CalibrationDeadZoneMax" ; inline CONSTANT: kIOHIDElementCalibrationDeadZoneMaxKey "CalibrationDeadZoneMax"
: kIOHIDElementCalibrationGranularityKey "CalibrationGranularity" ; inline CONSTANT: kIOHIDElementCalibrationGranularityKey "CalibrationGranularity"
: kIOHIDElementTypeInput_Misc 1 ; inline CONSTANT: kIOHIDElementTypeInput_Misc 1
: kIOHIDElementTypeInput_Button 2 ; inline CONSTANT: kIOHIDElementTypeInput_Button 2
: kIOHIDElementTypeInput_Axis 3 ; inline CONSTANT: kIOHIDElementTypeInput_Axis 3
: kIOHIDElementTypeInput_ScanCodes 4 ; inline CONSTANT: kIOHIDElementTypeInput_ScanCodes 4
: kIOHIDElementTypeOutput 129 ; inline CONSTANT: kIOHIDElementTypeOutput 129
: kIOHIDElementTypeFeature 257 ; inline CONSTANT: kIOHIDElementTypeFeature 257
: kIOHIDElementTypeCollection 513 ; inline CONSTANT: kIOHIDElementTypeCollection 513
: kIOHIDElementCollectionTypePhysical HEX: 00 ; inline CONSTANT: kIOHIDElementCollectionTypePhysical HEX: 00
: kIOHIDElementCollectionTypeApplication HEX: 01 ; inline CONSTANT: kIOHIDElementCollectionTypeApplication HEX: 01
: kIOHIDElementCollectionTypeLogical HEX: 02 ; inline CONSTANT: kIOHIDElementCollectionTypeLogical HEX: 02
: kIOHIDElementCollectionTypeReport HEX: 03 ; inline CONSTANT: kIOHIDElementCollectionTypeReport HEX: 03
: kIOHIDElementCollectionTypeNamedArray HEX: 04 ; inline CONSTANT: kIOHIDElementCollectionTypeNamedArray HEX: 04
: kIOHIDElementCollectionTypeUsageSwitch HEX: 05 ; inline CONSTANT: kIOHIDElementCollectionTypeUsageSwitch HEX: 05
: kIOHIDElementCollectionTypeUsageModifier HEX: 06 ; inline CONSTANT: kIOHIDElementCollectionTypeUsageModifier HEX: 06
: kIOHIDReportTypeInput 0 ; inline CONSTANT: kIOHIDReportTypeInput 0
: kIOHIDReportTypeOutput 1 ; inline CONSTANT: kIOHIDReportTypeOutput 1
: kIOHIDReportTypeFeature 2 ; inline CONSTANT: kIOHIDReportTypeFeature 2
: kIOHIDReportTypeCount 3 ; inline CONSTANT: kIOHIDReportTypeCount 3
: kIOHIDOptionsTypeNone HEX: 00 ; inline CONSTANT: kIOHIDOptionsTypeNone HEX: 00
: kIOHIDOptionsTypeSeizeDevice HEX: 01 ; inline CONSTANT: kIOHIDOptionsTypeSeizeDevice HEX: 01
: kIOHIDQueueOptionsTypeNone HEX: 00 ; inline CONSTANT: kIOHIDQueueOptionsTypeNone HEX: 00
: kIOHIDQueueOptionsTypeEnqueueAll HEX: 01 ; inline CONSTANT: kIOHIDQueueOptionsTypeEnqueueAll HEX: 01
: kIOHIDElementFlagsConstantMask HEX: 0001 ; inline CONSTANT: kIOHIDElementFlagsConstantMask HEX: 0001
: kIOHIDElementFlagsVariableMask HEX: 0002 ; inline CONSTANT: kIOHIDElementFlagsVariableMask HEX: 0002
: kIOHIDElementFlagsRelativeMask HEX: 0004 ; inline CONSTANT: kIOHIDElementFlagsRelativeMask HEX: 0004
: kIOHIDElementFlagsWrapMask HEX: 0008 ; inline CONSTANT: kIOHIDElementFlagsWrapMask HEX: 0008
: kIOHIDElementFlagsNonLinearMask HEX: 0010 ; inline CONSTANT: kIOHIDElementFlagsNonLinearMask HEX: 0010
: kIOHIDElementFlagsNoPreferredMask HEX: 0020 ; inline CONSTANT: kIOHIDElementFlagsNoPreferredMask HEX: 0020
: kIOHIDElementFlagsNullStateMask HEX: 0040 ; inline CONSTANT: kIOHIDElementFlagsNullStateMask HEX: 0040
: kIOHIDElementFlagsVolativeMask HEX: 0080 ; inline CONSTANT: kIOHIDElementFlagsVolativeMask HEX: 0080
: kIOHIDElementFlagsBufferedByteMask HEX: 0100 ; inline CONSTANT: kIOHIDElementFlagsBufferedByteMask HEX: 0100
: kIOHIDValueScaleTypeCalibrated 0 ; inline CONSTANT: kIOHIDValueScaleTypeCalibrated 0
: kIOHIDValueScaleTypePhysical 1 ; inline CONSTANT: kIOHIDValueScaleTypePhysical 1
: kIOHIDTransactionDirectionTypeInput 0 ; inline CONSTANT: kIOHIDTransactionDirectionTypeInput 0
: kIOHIDTransactionDirectionTypeOutput 1 ; inline CONSTANT: kIOHIDTransactionDirectionTypeOutput 1
: kIOHIDTransactionOptionDefaultOutputValue 1 ; inline CONSTANT: kIOHIDTransactionOptionDefaultOutputValue 1
TYPEDEF: ptrdiff_t IOHIDElementCookie TYPEDEF: ptrdiff_t IOHIDElementCookie
TYPEDEF: int IOHIDElementType TYPEDEF: int IOHIDElementType