B&B Electronics Parallel Printer Card PIOC Manuel d'utilisateur Page 27

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 64
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 26
GHI Electronics,LLC USBwiz User Manual
1. USBwiz Functions
Example: This example is taken from USB HID specifications. It assumes a 4-bytes
HID report for a keyboard:
Key Event Modifier Byte Array Array Array Comment
None 00000000B 00H 00H 00H
RALT down 01000000 00 00 00
None 01000000 00 00 00
Report current key
state even when no
new key events.
A down 01000000 04 00 00
X down 01000000 04 1B 00
B down 01000000 04 05 1B
Report order is
arbitrary and does
not reflect order of
events.
Q down 01000000 01 01 01
Phantom state.
Four Array keys
pressed. Modifiers
still reported.
A up
01000000 05 14 1B
B and Q up 01000000 1B 00 00
Multiple events in
one report. Event
order is
indeterminate.
None 01000000 1B 00 00
RALT up 00000000 1B 00 00
X up 00000000 00 00 00
Mouse
Most mice return 4 bytes in the HID report which are decoded as follows:
Byte0
5 bits 3 bits
Byte1 Byte2 Byte3
Reserved Buttons
b0 left
b1 right
b2
middle
X position Y position Scroll Position
Constant Variable Variable Variable Variable
NULL Absolute Relative to
the last
position
Relative to
the last
position
Relative to the last
position
0 Up=0
Down=1
-127 +127 -127 +127 -127 +127
Rev.2.27 Page 27 of 64 www.ghielectronics.com
Vue de la page 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 63 64

Commentaires sur ces manuels

Pas de commentaire