evdev gun support cleanup

This commit is contained in:
Megamouse 2022-11-27 12:20:05 +01:00
parent 2805fe0a06
commit 5188293242
10 changed files with 342 additions and 350 deletions

View file

@ -808,7 +808,10 @@ void gs_frame::take_screenshot(std::vector<u8> data, const u32 sshot_width, cons
void gs_frame::mouseDoubleClickEvent(QMouseEvent* ev)
{
if (m_disable_mouse || g_cfg.io.move == move_handler::mouse || g_cfg.io.move == move_handler::gun) return;
if (m_disable_mouse || g_cfg.io.move == move_handler::mouse) return;
#ifdef HAVE_LIBEVDEV
if (g_cfg.io.move == move_handler::gun) return;
#endif
if (ev->button() == Qt::LeftButton)
{