![]() If OpenWindow(0, #PB_Any, #PB_Any, 270, 180, "Joystick-Test", #PB_Window_SystemMenu) = 0 If StartDrawing(WindowOutput(0)) Set the drawing output to our windowįrontColor(RGB(255,0,0)) Use the RED colour MessageRequester("Info", "Button 2 has been pressed", 0) MessageRequester("Info", "Button 1 has been pressed", 0) If Event = #PB_Event_CloseWindow : Quit = 1 : EndIfĭelay(20) a little delay (20 milli seconds -> 50 fps) MessageRequester("Information", "This will test the joystick in a window.", 0) MessageRequester("Error", "No joysticks are availables.", 0)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |