refs #453 Refactor CInputManger and low level input handlers

This commit is contained in:
Roland Winklmeier
2015-08-14 20:21:27 +02:00
committed by Mathew Sutcliffe
parent 63c7c6be0d
commit 199a1e5fcb
31 changed files with 609 additions and 1086 deletions

View File

@@ -14,7 +14,7 @@
#include "blackinput/blackinputexport.h"
#include "blackinput/joystick.h"
#include "blackmisc/hardware/joystickbutton.h"
#include "blackmisc/input/joystickbutton.h"
#include "blackmisc/collection.h"
#include <QSet>
@@ -62,12 +62,6 @@ namespace BlackInput
//! \brief Destructor
virtual ~CJoystickWindows();
//! \copydoc IJoystick::startCapture()
virtual void startCapture() override;
//! \copydoc IJoystick::triggerButton()
virtual void triggerButton(const BlackMisc::Hardware::CJoystickButton button, bool isPressed) override;
protected:
//! Timer based updates
@@ -116,9 +110,8 @@ namespace BlackInput
QList<CJoystickDeviceData> m_availableJoystickDevices; //!< List of found and available joystick devices
QList<CJoystickDeviceInput> m_joystickDeviceInputs; //!< List of available device buttons
BlackMisc::CCollection<qint32> m_pressedButtons; //!< Collection of pressed buttons
IJoystick::Mode m_mode = ModeNominal; //!< Current working mode
BlackMisc::Input::CHotkeyCombination m_buttonCombination;
static const WCHAR *m_helperWindowClassName; //!< Helper window class name
static const WCHAR *m_helperWindowName; //!< Helper window name