Keyboard stops working on my main desktop (W8.1), my laptop (W10), and my PC at work (W10) too. My actual game loop isn't this tight, plenty of graphics and logic are happening each pass. Even so, perhaps I'm calling ExamineKeyboard() too much or something? I tried this with 5.61, 5.62beta1 and 5.62beta2, all 64-bit on both AMD and Intel CPUs. In debug and release modes, within IDE and as a standalone compiled EXE. Can anyone repro this? Any ideas what's going on? Thanks again, in advance.

Code: Select all
Define Event.i, Text.s = "00000"
If InitSprite() = 0 Or InitKeyboard() = 0
MessageRequester("PB Hang Test", "Init failed.")
End
EndIf
OpenWindow(0, 0, 0, 800, 600, "Test App", #PB_Window_SizeGadget | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget | #PB_Window_Maximize)
OpenWindowedScreen(WindowID(0), 0, 0, 1024, 768, #True, 0, 0, #PB_Screen_SmartSynchronization)
While #True
Repeat
Event = WindowEvent()
If Event = #PB_Event_CloseWindow
End
EndIf
Until Event = 0
StartDrawing(ScreenOutput())
BackColor($FFFFFF)
FrontColor($000000)
DrawText(100, 100, Text)
StopDrawing()
FlipBuffers()
ExamineKeyboard()
If KeyboardReleased(#PB_Key_1)
Text = RSet(Str(Random(10000)), 5, "0")
EndIf
Wend