소스 검색

Merge pull request #3 from KurtE/PS3-Usage-Pointer-issue

PS3 - Right Joystick does not work
main
Paul Stoffregen 7 년 전
부모
커밋
34b7dc5f51
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. +7
    -1
      hid.cpp

+ 7
- 1
hid.cpp 파일 보기

@@ -429,7 +429,11 @@ void USBHIDParser::parse(uint16_t type_and_report_id, const uint8_t *data, uint3
break;
case 0x08: // Usage (local)
if (usage_count < USAGE_LIST_LEN) {
usage[usage_count++] = val;
// Usages: 0 is reserved 0x1-0x1f is sort of reserved for top level things like
// 0x1 - Pointer - A collection... So lets try ignoring these
if (val > 0x1f) {
usage[usage_count++] = val;
}
}
break;
case 0x18: // Usage Minimum (local)
@@ -477,6 +481,8 @@ void USBHIDParser::parse(uint16_t type_and_report_id, const uint8_t *data, uint3
println(" type= ", val, HEX);
println(" min= ", logical_min);
println(" max= ", logical_max);
println(" reportcount=", report_count);
println(" usage count=", usage_count);
driver->hid_input_begin(topusage, val, logical_min, logical_max);
println("Input, total bits=", report_count * report_size);
if ((val & 2)) {

Loading…
취소
저장