Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Window doesn't finish loading and is not responding to input  (Read 2687 times)

0 Members and 1 Guest are viewing this topic.

affenmehl8

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Hello fellas!

I'm new to SFML so my problem is maybe stupid. I made a main menu and my problem is that if I start the program I get this loading mouse icon and the programm isn't responding to my input. The input is checked in another than the menu class so maybe thats my problem but I'm not sure.
Here's my code:

menu header:
(click to show/hide)

main:
(click to show/hide)


I hope somebody can help me. And yes, sorry for ugly code. I'm just playing around.

affenmehl8

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Window doesn't finish loading and is not responding to input
« Reply #1 on: June 10, 2019, 11:48:31 pm »
Hello my brothers. I found my problem.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Window doesn't finish loading and is not responding to input
« Reply #2 on: June 11, 2019, 08:13:00 pm »
Your window is receiving lots of events from the operating system but since your program is not responding to them, the operating system thinks it's not responding at all.

Process your window's events.

See this official tutorial on events (https://www.sfml-dev.org/tutorials/2.5/window-events.php)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything