1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 20:22:30 +01:00

input: add enum count for enumeration

This commit is contained in:
Megamouse 2023-05-21 13:43:27 +02:00
parent 64437a531b
commit 1a98682ea0
10 changed files with 24 additions and 4 deletions

View File

@ -687,6 +687,8 @@ static void ds3_input_to_pad(const u32 port_no, be_t<u16>& digital_buttons, be_t
digital_buttons |= CELL_GEM_CTRL_T;
analog_t = std::max<u16>(analog_t, button.m_value);
break;
case gem_btn::count:
break;
}
}
}

View File

@ -111,6 +111,8 @@ void usb_device_buzz::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endpoint*/
case buzz_btn::blue:
buf[2 + (4 + 5 * index) / 8] |= 1 << ((4 + 5 * index) % 8); // Blue
break;
case buzz_btn::count:
break;
}
}
}

View File

@ -168,6 +168,8 @@ void usb_device_ghltar::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endpoint
case ghltar_btn::ghtv:
buf[1] += 0x04; // GHTV Button
break;
case ghltar_btn::count:
break;
}
}
}

View File

@ -235,6 +235,8 @@ void usb_device_turntable::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endpo
case turntable_btn::select:
buf[1] |= 0x01; // Select
break;
case turntable_btn::count:
break;
}
}
}

View File

@ -10,7 +10,9 @@ enum class buzz_btn
yellow,
green,
orange,
blue
blue,
count
};
struct cfg_buzzer final : public emulated_pad_config<buzz_btn>

View File

@ -14,6 +14,8 @@ enum class gem_btn
square,
move,
t,
count
};
struct cfg_gem final : public emulated_pad_config<gem_btn>

View File

@ -18,7 +18,9 @@ enum class ghltar_btn
strum_down,
strum_up,
dpad_left,
dpad_right
dpad_right,
count
};
struct cfg_ghltar final : public emulated_pad_config<ghltar_btn>

View File

@ -18,7 +18,9 @@ enum class turntable_btn
square,
circle,
cross,
triangle
triangle,
count
};
struct cfg_turntable final : public emulated_pad_config<turntable_btn>

View File

@ -245,6 +245,8 @@ void usb_device_usio::translate_input()
if (button.m_pressed)
std::memcpy(input_buf.data() + 38 + offset, &c_small_hit, sizeof(u16));
break;
case usio_btn::count:
break;
}
}
}

View File

@ -19,7 +19,9 @@ enum class usio_btn
small_hit_side_left,
small_hit_side_right,
small_hit_center_left,
small_hit_center_right
small_hit_center_right,
count
};
struct cfg_usio final : public emulated_pad_config<usio_btn>