最終更新:2014-08-28 (木) 07:16:29 (3522d)
レポートディスクリプタ/Usage Minimum
Top / レポートディスクリプタ / Usage Minimum
定義
- Defines the starting usage associated with an array or bitmap.
3ボタンマウスの例
05 01 Usage Page (Generic Desktop), ;Use the Generic Desktop Usage Page 09 02 Usage (Mouse), A1 01 Collection (Application), ;Start Mouse collection 09 01 Usage (Pointer), A1 00 Collection (Physical), ;Start Pointer collection 05 09 Usage Page (Buttons), 19 01 Usage Minimum (01), 29 03 Usage Maximum (03), ;3 Button 15 00 Logical Minimum (0), 25 01 Logical Maximum (1), ;Fields return values from 0 to 1 95 03 Report Count (3), ;Create three 1 bit fields (button 1, 2, & 3) 75 01 Report Size (1), 81 02 Input (Data, Variable, Absolute), ;3 button bits 95 01 Report Count (1), 75 05 Report Size (5), ;Create 5 bit constant field 81 01 Input (Constant), ;5 bit padding 05 01 Usage Page (Generic Desktop), 09 30 Usage (X), 09 31 Usage (Y), 15 81 Logical Minimum (-127), 25 7F Logical Maximum (127), ;Fields return values from -127 to 127 75 08 Report Size (8), 95 02 Report Count (2), ;Create two 8 bit fields (X & Y position) 81 06 Input (Data, Variable, Relative), ;2 position bytes (X & Y) C0 End Collection, ;Close Pointer collection C0 End Collection ;Close Mouse collection
バイト 0 1 2 ビット 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Usage Padding ボタン3 ボタン2 ボタン1 X Y
メモ
- 定義されるレポートにUsageの番号を付ける感じ?
- Button 1:左クリック
- Button 2:右クリック
- Button 3:中クリック
関連
- レポートディスクリプタ/Usage Maximum
- レポートディスクリプタ/Usage Page (グローバルアイテム)
- レポートディスクリプタ/Usage (ローカルアイテム)