evdev gun support

supports guns via evdev. multiple guns.
extra buttons are configurable (guns can be configured for that).

Signed-off-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
This commit is contained in:
Nicolas Adenis-Lamarre 2022-11-13 17:10:09 +00:00 committed by Megamouse
parent b4757b514d
commit 2805fe0a06
9 changed files with 481 additions and 4 deletions

View file

@ -9,6 +9,7 @@
#include "Emu/perf_monitor.hpp"
#include "Emu/vfs_config.h"
#include "Emu/IPC_config.h"
#include "Input/evdev_gun_handler.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Cell/PPUThread.h"
@ -2737,6 +2738,9 @@ void Emulator::CleanUp()
{
// Deinitialize object manager to prevent any hanging objects at program exit
g_fxo->clear();
// deinitialize gun
evdev_gun_handler::shutdown();
}
std::string Emulator::GetFormattedTitle(double fps) const