| 9704 | } |
| 9705 | |
| 9706 | static void inputdevice_testrecord_info(int type, int num, int wtype, int wnum, int state, int max) |
| 9707 | { |
| 9708 | #if 0 |
| 9709 | TCHAR name[256]; |
| 9710 | |
| 9711 | if (type == IDTYPE_KEYBOARD) { |
| 9712 | if (wnum >= 0x100) { |
| 9713 | wnum = 0x100 - wnum; |
| 9714 | } else { |
| 9715 | struct uae_input_device *na = &keyboards[num]; |
| 9716 | int j = 0; |
| 9717 | while (j < MAX_INPUT_DEVICE_EVENTS && na->extra[j] >= 0) { |
| 9718 | if (na->extra[j] == wnum) { |
| 9719 | wnum = j; |
| 9720 | break; |
| 9721 | } |
| 9722 | j++; |
| 9723 | } |
| 9724 | if (j >= MAX_INPUT_DEVICE_EVENTS || na->extra[j] < 0) |
| 9725 | return; |
| 9726 | } |
| 9727 | } |
| 9728 | int devnum2 = getdevnum(type, num); |
| 9729 | int type2; |
| 9730 | if (wnum >= 0 && wnum < MAX_INPUT_DEVICE_EVENTS) |
| 9731 | type2 = idev[type].get_widget_first(num, wtype) + wnum; |
| 9732 | else |
| 9733 | type2 = wnum; |
| 9734 | int state2 = state; |
| 9735 | |
| 9736 | name[0] = 0; |
| 9737 | int type3 = inputdevice_get_widget_type(devnum2, type2, name, sizeof name / sizeof(TCHAR), false); |
| 9738 | if (name[0]) { |
| 9739 | const struct inputdevice_functions *idf = getidf(devnum2); |
| 9740 | write_log(_T("%s %s\n"), idf->get_friendlyname(inputdevice_get_device_index(devnum2)), name); |
| 9741 | } |
| 9742 | #endif |
| 9743 | } |
| 9744 | |
| 9745 | static void inputdevice_testrecord_test(int type, int num, int wtype, int wnum, int state, int max) |
| 9746 | { |
no test coverage detected