mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-10-02 06:10:00 +00:00
input: fix some warnings
This commit is contained in:
parent
86ed82dcec
commit
0ebe832f8e
2 changed files with 5 additions and 2 deletions
|
@ -104,8 +104,11 @@ void usb_device_buzz::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endpoint*/
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto& cfg = g_cfg_buzz.players[i];
|
const auto& cfg = g_cfg_buzz.players[i];
|
||||||
cfg->handle_input(pad, true, [&buf, &index](buzz_btn btn, u16 value, bool pressed)
|
cfg->handle_input(pad, true, [&buf, &index](buzz_btn btn, u16 /*value*/, bool pressed)
|
||||||
{
|
{
|
||||||
|
if (!pressed)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (btn)
|
switch (btn)
|
||||||
{
|
{
|
||||||
case buzz_btn::red:
|
case buzz_btn::red:
|
||||||
|
|
|
@ -199,7 +199,7 @@ void usb_device_usio::translate_input()
|
||||||
const std::size_t offset = (player * 8ULL);
|
const std::size_t offset = (player * 8ULL);
|
||||||
|
|
||||||
const auto& cfg = ::at32(g_cfg_usio.players, pad_number);
|
const auto& cfg = ::at32(g_cfg_usio.players, pad_number);
|
||||||
cfg->handle_input(pad, false, [&](usio_btn btn, u16 value, bool pressed)
|
cfg->handle_input(pad, false, [&](usio_btn btn, u16 /*value*/, bool pressed)
|
||||||
{
|
{
|
||||||
switch (btn)
|
switch (btn)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue