Handheld Scientific, Inc.Page 10 of 25the Usage Page, the second byte is always 0 (reserved). The third and fourth bytes is thekeycode (or Usage in USB terminology). For instance,0x7000004 ‘a’ // regular keys are in Usage Page 0x70x7000005 ‘b’0x70000e0 ‘l_ctrl’0x70000e1 ‘l_shift’0x70000e2 ‘l_alt’0x70000e3 ‘l_com’0x70000e4 ‘r_ctrl’0x70000e5 ‘r_shift’0xc0000e9 ‘volume increase’ // media keys are in Usage Page 0xC0xc000192 calculator0xc000223 AC homeUsing the generic form, you can come up with any key output, even those whose names are notin the name list, or those not on a keyboard. This is a very powerful and useful feature.The keycodes can be found in the document USB HID Usage Tables v1.12 from usb.org.3.4 Mouse Clicks and MovementsThe Adapter can also output mouse actions: movements and button clicks. They can be used inmost places where a key name is expected. For example, you can map a simple key orcompound key to some mouse movements. Mouse actions can be specified with one of the twoforms:mouse:{button}:{x_dir}:{y_dir}mouse_ex:{wheel}:{pan}:{z_dir}The first form specifies the button click, horizontal and vertical movements. The mouse click is abit map so button 1 is 1, button 2 is 2, button 3 is 4, buttons 1 & 2 at the same time is 3, and soon. For horizontal direction, moving left is negative and right positive. For vertical direction, up isnegative and down positive. The unit is pixel (or however the host interprets the numbers). Therange of the values is -126 to 126. For example,mouse:1:0:0 – click the first (left) mouse button.mouse:0:5:0 – move mouse right 5 pixels.mouse:0:0:-10 – move mouse up 10 pixels.The second form specifies the wheel, pan and z direction movement. It is used less often. Theinterpretation of those in the host is not standard. It also depends on what the currentapplication is. For example, if the current application is a web browser, the wheel action wouldcause the page to scroll. In a CAD application, the pan action usually causes it to zoom. Hereare some examples:mouse_ex:50:0:0 – move mouse wheel down (scroll down) 50 units.mouse_ex:0:-5:0 – pan (zoom) -5 units.