Code: Select all
ExamineDesktops()
Width = DesktopWidth(0)
Height = DesktopHeight(0)
InitSprite()
OpenWindow(0, 0, 0, Width, Height, "Test Debug", #PB_Window_Maximize | #PB_Window_BorderLess)
OpenWindowedScreen(WindowID(0), 0, 0, WindowWidth(0)*DesktopResolutionX(), WindowHeight(0)*DesktopResolutionY(), #False, 0, 0, #PB_Screen_WaitSynchronization)
Debug "Test"
InitKeyboard()
Repeat
Event = WindowEvent()
ExamineKeyboard()
Delay(20)
FlipBuffers()
Until Event = #PB_Event_CloseWindow Or KeyboardPushed(#PB_Key_Escape)