mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 15:15:39 +08:00
Ref T585, only use push buttons as direct input devices
This commit is contained in:
committed by
Mat Sutcliffe
parent
5661180f3e
commit
df119c6e98
@@ -70,7 +70,9 @@ namespace BlackInput
|
|||||||
// Filter devices with 0 buttons
|
// Filter devices with 0 buttons
|
||||||
if (deviceCaps.dwButtons == 0) { return false; }
|
if (deviceCaps.dwButtons == 0) { return false; }
|
||||||
|
|
||||||
if (FAILED(hr = m_directInputDevice->EnumObjects(enumObjectsCallback, this, DIDFT_BUTTON)))
|
// fix for the toggle button issue T585
|
||||||
|
// if (FAILED(hr = m_directInputDevice->EnumObjects(enumObjectsCallback, this, DIDFT_BUTTON)))
|
||||||
|
if (FAILED(hr = m_directInputDevice->EnumObjects(enumObjectsCallback, this, DIDFT_PSHBUTTON)))
|
||||||
{
|
{
|
||||||
CLogMessage(this).warning(u"IDirectInputDevice8::EnumObjects failed: ") << hr;
|
CLogMessage(this).warning(u"IDirectInputDevice8::EnumObjects failed: ") << hr;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user