mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Update InputHelpers.cpp
This commit is contained in:
parent
4d71c96a10
commit
5709ced6ce
1 changed files with 5 additions and 0 deletions
|
@ -111,6 +111,11 @@ void ActivateTextEditInput(bool byFocus) {
|
|||
ref new Windows::UI::Core::DispatchedHandler([=]()
|
||||
{
|
||||
if (byFocus) {
|
||||
// Why we should delay? (Mostly happen on XBox)
|
||||
// once the popup appear, UI is reporting 3 focus events for text edit (got, lost, got)
|
||||
// it might be caused by the input pane it self but anyway..
|
||||
// because this has to on UI thread and async, we will end with input pane hidden
|
||||
// the small delay will ensure that last recieved event is (got focus)
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue