/*	$Maekawa: hiddefs.h,v 1.29 2000/04/04 06:37:38 maekawa Exp $	*/

/*
 * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
 *
 * generated from:
 *	Maekawa: hiddefs,v 1.19 2000/04/04 06:37:30 maekawa Exp 
 */

#define	HID_ITEM_TYPE_MAIN		0
#define	HID_ITEM_TYPE_GLOBAL		1
#define	HID_ITEM_TYPE_LOCAL		2

/* Main items */
#define	HID_MAIN_ITEM_INPUT		8
#define	HID_MAIN_ITEM_OUTPUT		9
#define	HID_MAIN_ITEM_COLLECTION		10
#define	HID_MAIN_ITEM_FEATURE		11
#define	HID_MAIN_ITEM_ENDCOLLECTION		12

#define	HID_COLLECTION_PHYSICAL	0
#define	HID_COLLECTION_APPLICATION	1
#define	HID_COLLECTION_LOGICAL	2
#define	HID_COLLECTION_VENDOR_START	0x80
#define	HID_COLLECTION_VENDOR_END	0xff

/* Global items */
#define	HID_GLOBAL_ITEM_USAGE_PAGE		0
#define	HID_GLOBAL_ITEM_LOGICAL_MIN		1
#define	HID_GLOBAL_ITEM_LOGICAL_MAX		2
#define	HID_GLOBAL_ITEM_PHYSICAL_MIN		3
#define	HID_GLOBAL_ITEM_PHYSICAL_MAX		4
#define	HID_GLOBAL_ITEM_UNIT_EXPONENT		5
#define	HID_GLOBAL_ITEM_UNIT		6
#define	HID_GLOBAL_ITEM_REPORT_SIZE		7
#define	HID_GLOBAL_ITEM_REPORT_ID		8
#define	HID_GLOBAL_ITEM_REPORT_COUNT		9
#define	HID_GLOBAL_ITEM_PUSH		10
#define	HID_GLOBAL_ITEM_POP		11

/* Local items */
#define	HID_LOCAL_ITEM_USAGE		0
#define	HID_LOCAL_ITEM_USAGE_MIN		1
#define	HID_LOCAL_ITEM_USAGE_MAX		2
#define	HID_LOCAL_ITEM_DESIGNATOR_INDEX		3
#define	HID_LOCAL_ITEM_DESIGNATOR_MIN		4
#define	HID_LOCAL_ITEM_DESIGNATOR_MAX		5
#define	HID_LOCAL_ITEM_STRING_INDEX		6
#define	HID_LOCAL_ITEM_STRING_MIN		7
#define	HID_LOCAL_ITEM_STRING_MAX		8
#define	HID_LOCAL_ITEM_DELIMITER		9
 
/* Usage Pages */
#define	HID_USAGE_PAGE_UNDEFINED		0x0000
#define	HID_USAGE_PAGE_GENERICDESKTOP		0x0001
#define	HID_USAGE_PAGE_SIMULATION		0x0002
#define	HID_USAGE_PAGE_VR		0x0003
#define	HID_USAGE_PAGE_SPORTS		0x0004
#define	HID_USAGE_PAGE_GAME		0x0005
#define	HID_USAGE_PAGE_KEYBOARD		0x0007
#define	HID_USAGE_PAGE_LED		0x0008
#define	HID_USAGE_PAGE_BUTTON		0x0009
#define	HID_USAGE_PAGE_ORDINAL		0x000a
#define	HID_USAGE_PAGE_TELEPHONY		0x000b
#define	HID_USAGE_PAGE_CONSUMER		0x000c
#define	HID_USAGE_PAGE_DIGITIZER		0x000d
#define	HID_USAGE_PAGE_PID		0x000e
#define	HID_USAGE_PAGE_UNICODE		0x0010
#define	HID_USAGE_PAGE_ALPHANUMERIC		0x0014
#define	HID_USAGE_PAGE_MONITOR1		0x0080
#define	HID_USAGE_PAGE_MONITOR2		0x0081
#define	HID_USAGE_PAGE_MONITOR3		0x0082
#define	HID_USAGE_PAGE_MONITOR4		0x0083
#define	HID_USAGE_PAGE_POWER1		0x0084
#define	HID_USAGE_PAGE_POWER2		0x0085
#define	HID_USAGE_PAGE_POWER3		0x0086
#define	HID_USAGE_PAGE_POWER4		0x0087
#define	HID_USAGE_PAGE_BARCODE		0x008c
#define	HID_USAGE_PAGE_WEIGHING		0x008d
#define	HID_USAGE_PAGE_CAMERA		0x0090
#define	HID_USAGE_PAGE_ARCADE		0x0091
#define	HID_USAGE_PAGE_VENDOR_START		0xff00
#define	HID_USAGE_PAGE_VENDOR_END		0xffff

/* Usage Types */
#define	NONE	0x00000000	/* None */
#define	LC	0x00000001	/* Linear Control */
#define	OOC	0x00000002	/* On/Off Control */
#define	MC	0x00000004	/* Momentary Control */
#define	OSC	0x00000008	/* One Shot Control */
#define	RTC	0x00000010	/* Re-Trigger Control */
#define	Sel	0x00000020	/* Selector */
#define	SV	0x00000040	/* Static Value */
#define	SF	0x00000080	/* Static Flag */
#define	DF	0x00000100	/* Dynamic Flag */
#define	DV	0x00000200	/* Dynamic Value */
#define	NAry	0x00000400	/* Named Array */
#define	CA	0x00000800	/* Collection Application */
#define	CL	0x00001000	/* Collection Logical */
#define	CP	0x00002000	/* Collection Physical */
#define	US	0x00004000	/* Usage Switch */
#define	UM	0x00008000	/* Usage Modifier */

