MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / InputDevice

Method InputDevice

src/inputdevice.cpp:42–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40#endif
41
42InputDevice::InputDevice(SDL_Joystick *joystick, int deviceIndex, AntiMicroSettings *settings, QObject *parent)
43 : QObject(parent)
44 , m_calibrations(this)
45{
46 buttonDownCount = 0;
47 joyNumber = deviceIndex;
48 active_set = 0;
49 joystickID = 0;
50 keyPressTime = 0;
51 m_joyhandle = joystick;
52 deviceEdited = false;
53 keyRepeatEnabled = false;
54 keyRepeatDelay = 0;
55 keyRepeatRate = 0;
56 rawAxisDeadZone = GlobalVariables::InputDevice::RAISEDDEADZONE;
57 m_settings = settings;
58
59 registerDBusObject();
60}
61
62InputDevice::~InputDevice() { unregisterDBusObject(); }
63

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected