mirror of
https://github.com/Maschell/hid_to_vpad.git
synced 2024-11-22 06:29:15 +01:00
Fixed using multiple controllers of the same type (same vid/pid).
This commit is contained in:
parent
1cdd5feb5e
commit
e89bfbbbd2
@ -1 +1 @@
|
|||||||
Subproject commit f98014f354f0ec7dd3d1c034aa74a8ad2ba2f774
|
Subproject commit 215f6952a6c60f44bbf695c3817f476178d1e011
|
@ -122,7 +122,7 @@ void InputGetterMenu::GetInputs(CThread *thread, void *arg){
|
|||||||
if(result > 0){
|
if(result > 0){
|
||||||
//log_printf("got %d results\n",result);
|
//log_printf("got %d results\n",result);
|
||||||
for(int i =0;i<result;i++){
|
for(int i =0;i<result;i++){
|
||||||
for(int j = 0;j<hiddata[i].device_info.pad_count;j++){
|
for(int j = 0;j<HID_MAX_PADS_COUNT;j++){
|
||||||
//log_printf("check pad %d. %08X\n",j,hiddata[i].button_data[j].btn_h);
|
//log_printf("check pad %d. %08X\n",j,hiddata[i].button_data[j].btn_h);
|
||||||
if(hiddata[i].button_data[j].btn_h != 0){
|
if(hiddata[i].button_data[j].btn_h != 0){
|
||||||
//log_printf("It pressed a buttons!\n",result);
|
//log_printf("It pressed a buttons!\n",result);
|
||||||
|
Loading…
Reference in New Issue
Block a user