keronlaser.blogg.se

Purebasic window api fullscreen
Purebasic window api fullscreen





purebasic window api fullscreen purebasic window api fullscreen

If KeyboardPushed( #PB_Key_Up) And playerY > 0 : playerY -3 : EndIf If KeyboardPushed( #PB_Key_Down) And playerY 0 : playerX -3 : EndIf If KeyboardPushed( #PB_Key_Right) And playerX 300 : direction = -1 : EndIf moving back to the left with negative value do the sprite & screen management at every frame SetGadgetText(4, "Button "+ Str(Gadget)+" pressed.")ĮndSelect EndSelect Until Event = 0 Quit the event loop only when no more events are available SetGadgetText(4, "Press 'F1' to ungrab keyboard and mouse") WindowID is the handle of the window on which the screen will be opened. This means, the program runs not in fullscreen, but in windowed mode. Repeat Repeat Always process all the events to flush the queue at every frameĬase #PB_Event_Gadget Do the normal application management here This function opens a screen on a window.

purebasic window api fullscreen

TextGadget (4, 10, 40, 300, 30, "Mouse and keyboard released") But if I want to switch back to another application one more time, my application statys in fullscreen mode, hiding all others applications on my computer. If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0 Then, I switch back to my application, and it comes up in fullscreen mode.







Purebasic window api fullscreen