mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
Ref T391, style
This commit is contained in:
@@ -45,7 +45,7 @@ namespace BlackInput
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set cooperative level
|
// Set cooperative level
|
||||||
if(!helperWindow) { return false; }
|
if (!helperWindow) { return false; }
|
||||||
if (FAILED(hr = m_directInputDevice->SetCooperativeLevel(helperWindow, DISCL_NONEXCLUSIVE | DISCL_BACKGROUND)))
|
if (FAILED(hr = m_directInputDevice->SetCooperativeLevel(helperWindow, DISCL_NONEXCLUSIVE | DISCL_BACKGROUND)))
|
||||||
{
|
{
|
||||||
CLogMessage(this).warning("IDirectInputDevice8::SetCooperativeLevel failed: ") << hr;
|
CLogMessage(this).warning("IDirectInputDevice8::SetCooperativeLevel failed: ") << hr;
|
||||||
@@ -236,11 +236,11 @@ namespace BlackInput
|
|||||||
|
|
||||||
/* Create the window. */
|
/* Create the window. */
|
||||||
helperWindow = CreateWindowEx(0, helperWindowClassName,
|
helperWindow = CreateWindowEx(0, helperWindowClassName,
|
||||||
helperWindowName,
|
helperWindowName,
|
||||||
WS_OVERLAPPED, CW_USEDEFAULT,
|
WS_OVERLAPPED, CW_USEDEFAULT,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
CW_USEDEFAULT, HWND_MESSAGE, nullptr,
|
CW_USEDEFAULT, HWND_MESSAGE, nullptr,
|
||||||
hInstance, nullptr);
|
hInstance, nullptr);
|
||||||
if (helperWindow == nullptr)
|
if (helperWindow == nullptr)
|
||||||
{
|
{
|
||||||
UnregisterClass(helperWindowClassName, hInstance);
|
UnregisterClass(helperWindowClassName, hInstance);
|
||||||
|
|||||||
Reference in New Issue
Block a user