📄 xbcd_report.h
字号:
/*
Copyright 2003 Helder Acevedo
This file is part of XBCD.
XBCD is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
XBCD is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// XBCD_report.h
char ReportDescriptor[] = {
0x05,0x01, //usage_page(generic desktop)
0x09,0x04, //usage (joystick)
0xA1,0x01, //collection(application)
0x85,0x04, // report id
0xA1,0x02, // collection(logical)
0x75,0x08, // report_size(8)
0x95,0x04, // report_count(4)
0x15,0x00, // logical_minimum(0)
0x26,0xFF,0x00, // logical_maximum(255)
0x35,0x00, // physical_minimum(0)
0x46,0xFF,0x00, // phusical_maximum(255)
0x09,0x32, // usage(Z)
0x09,0x35, // usage(Rz)
0x09,0x30, // usage(X)
0x09,0x31, // usage(Y)
// 0x09,0x00, // usage(undefined)
0x81,0x02, // input(data,var,abs)
0x75,0x04, // report_size(4)
0x95,0x01, // report_count(1)
0x25,0x07, // logical_maximum(7)
0x46,0x3B,0x01, // physical_maximum(315)
0x65,0x14, // unit(eng rot:angular pos)
0x09,0x39, // usage(hat switch)
0x81,0x42, // input(data,var,abs,null)
0x65,0x00, // unit(none)
0x75,0x01, // report_size(1)
0x95,0x0C, // report_count(12)
0x25,0x01, // logical_maximum(1)
0x45,0x01, // physical_maximum(1)
0x05,0x09, // usage_page(button)
0x19,0x01, // usage_minimum(button 1)
0x29,0x0C, // usage_maximum(button 12)
0x81,0x02, // input(data,var,abs)
0xC0, // end_collection
0xA1,0x02, // collection(logical)
0x75,0x08, // report_size(8)
0x95,0x04, // report_count(4)
0x46,0xFF,0x00, // phusical_maximum(255)
0x26,0xFF,0x00, // logical_maximum(255)
0x09,0x02, // usage(vendor usage 2)
0x91,0x02, // output(data,var,abs)
0xC0, // end_collection
0xC0, //end_collection
0x05,0x01, //usage_page(generic desktop)
0x09,0x04, //usage (joystick)
0xA1,0x01, //collection(application)
0x85,0x05, // report id
0xA1,0x02, // collection(logical)
0x75,0x08, // report_size(8)
0x95,0x04, // report_count(4)
0x15,0x00, // logical_minimum(0)
0x26,0xFF,0x00, // logical_maximum(255)
0x35,0x00, // physical_minimum(0)
0x46,0xFF,0x00, // phusical_maximum(255)
0x09,0x32, // usage(Z)
0x09,0x35, // usage(Rz)
0x09,0x30, // usage(X)
0x09,0x31, // usage(Y)
// 0x09,0x00, // usage(undefined)
0x81,0x02, // input(data,var,abs)
0x75,0x04, // report_size(4)
0x95,0x01, // report_count(1)
0x25,0x07, // logical_maximum(7)
0x46,0x3B,0x01, // physical_maximum(315)
0x65,0x14, // unit(eng rot:angular pos)
0x09,0x39, // usage(hat switch)
0x81,0x42, // input(data,var,abs,null)
0x65,0x00, // unit(none)
0x75,0x01, // report_size(1)
0x95,0x0C, // report_count(12)
0x25,0x01, // logical_maximum(1)
0x45,0x01, // physical_maximum(1)
0x05,0x09, // usage_page(button)
0x19,0x01, // usage_minimum(button 1)
0x29,0x0C, // usage_maximum(button 12)
0x81,0x02, // input(data,var,abs)
0xC0, // end_collection
0xA1,0x02, // collection(logical)
0x75,0x08, // report_size(8)
0x95,0x04, // report_count(4)
0x46,0xFF,0x00, // phusical_maximum(255)
0x26,0xFF,0x00, // logical_maximum(255)
0x09,0x02, // usage(vendor usage 2)
0x91,0x02, // output(data,var,abs)
0xC0, // end_collection
0xC0, //end_collection
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -