mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05:34 +08:00
Ref T488 Fixed cppcheck warnings.
This commit is contained in:
@@ -20,15 +20,14 @@ using namespace BlackMisc::Input;
|
||||
|
||||
namespace BlackInput
|
||||
{
|
||||
CJoystickDevice::CJoystickDevice(DirectInput8Ptr directInputPtr, const DIDEVICEINSTANCE *pdidInstance, QObject *parent)
|
||||
: QObject(parent),
|
||||
m_directInput(directInputPtr)
|
||||
{
|
||||
m_deviceName = QString::fromWCharArray(pdidInstance->tszInstanceName);
|
||||
m_productName = QString::fromWCharArray(pdidInstance->tszProductName);
|
||||
m_guidDevice = pdidInstance->guidInstance;
|
||||
m_guidProduct = pdidInstance->guidProduct;
|
||||
}
|
||||
CJoystickDevice::CJoystickDevice(DirectInput8Ptr directInputPtr, const DIDEVICEINSTANCE *pdidInstance, QObject *parent) :
|
||||
QObject(parent),
|
||||
m_guidDevice(pdidInstance->guidInstance),
|
||||
m_guidProduct(pdidInstance->guidProduct),
|
||||
m_deviceName(QString::fromWCharArray(pdidInstance->tszInstanceName)),
|
||||
m_productName(QString::fromWCharArray(pdidInstance->tszProductName)),
|
||||
m_directInput(directInputPtr)
|
||||
{}
|
||||
|
||||
bool CJoystickDevice::init(HWND helperWindow)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user