Skip to content

Commit

Permalink
input: fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed Jun 8, 2023
1 parent f1f3fff commit d309e55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion rpcs3/Emu/Io/Buzz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
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)
{
case buzz_btn::red:
Expand Down
2 changes: 1 addition & 1 deletion rpcs3/Emu/Io/usio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void usb_device_usio::translate_input()
const std::size_t offset = (player * 8ULL);

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)
{
Expand Down

0 comments on commit d309e55

Please sign in to comment.