fix keys sticking
This commit is contained in:
@@ -126,6 +126,10 @@ void InputHandler_DInput::WindowReset()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
Devices[i].Close();
|
Devices[i].Close();
|
||||||
|
|
||||||
|
/* We lose buffered inputs here, so we need to clear all pressed keys. */
|
||||||
|
INPUTFILTER->ResetDevice( Devices[i].dev );
|
||||||
|
|
||||||
bool ret = Devices[i].Open();
|
bool ret = Devices[i].Open();
|
||||||
|
|
||||||
/* Reopening it should succeed. */
|
/* Reopening it should succeed. */
|
||||||
|
|||||||
Reference in New Issue
Block a user