input: remove unused parameter

This commit is contained in:
Megamouse 2024-05-25 15:58:59 +02:00
parent ab15584eed
commit 0e32f19de8
2 changed files with 2 additions and 2 deletions

View file

@ -280,7 +280,7 @@ void usb_device_guncon3::interrupt_transfer(u32 buf_size, u8* buf, u32 endpoint,
gc.gun_x = (mouse_data.x_pos * USHRT_MAX / mouse_data.x_max) - SHRT_MAX;
gc.gun_y = (mouse_data.y_pos * -USHRT_MAX / mouse_data.y_max) + SHRT_MAX;
cfg->handle_input(mouse_data, true, input_callback);
cfg->handle_input(mouse_data, input_callback);
}
guncon3_encode(&gc, buf, m_key.data());

View file

@ -107,7 +107,7 @@ public:
}
}
void handle_input(const Mouse& mouse, bool press_only, const std::function<void(T, u16, bool)>& func) const
void handle_input(const Mouse& mouse, const std::function<void(T, u16, bool)>& func) const
{
for (int i = 0; i < 7; i++)
{