Fixed using multiple controllers of the same type (same vid/pid).

This commit is contained in:
Maschell 2017-04-02 19:06:09 +02:00
parent 1cdd5feb5e
commit e89bfbbbd2
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit f98014f354f0ec7dd3d1c034aa74a8ad2ba2f774
Subproject commit 215f6952a6c60f44bbf695c3817f476178d1e011

View File

@ -122,7 +122,7 @@ void InputGetterMenu::GetInputs(CThread *thread, void *arg){
if(result > 0){
//log_printf("got %d results\n",result);
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);
if(hiddata[i].button_data[j].btn_h != 0){
//log_printf("It pressed a buttons!\n",result);