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

Author Topic: SFML Events in a different window  (Read 2820 times)

0 Members and 1 Guest are viewing this topic.

Kwang1imsa

  • Newbie
  • *
  • Posts: 26
    • MSN Messenger - kwang1imsa@gmail.com
    • View Profile
SFML Events in a different window
« on: March 17, 2011, 04:51:55 pm »
Hi,
I'm using SFML with OGRE and I'm binding OGRE's window handle to SFML. Unfortunately, the window does not respond to any events and freezes up in my while loop.

How can I have a different window respond to keyboard, click, resize, and etc. events through SFML?

Kwang1imsa

  • Newbie
  • *
  • Posts: 26
    • MSN Messenger - kwang1imsa@gmail.com
    • View Profile
SFML Events in a different window
« Reply #1 on: March 18, 2011, 03:05:08 pm »
The best description I can give is that when I bind SFML to the new handle, the window no longer responds to mouse events.

Kwang1imsa

  • Newbie
  • *
  • Posts: 26
    • MSN Messenger - kwang1imsa@gmail.com
    • View Profile
SFML Events in a different window
« Reply #2 on: March 30, 2011, 10:11:16 pm »
Update:
The window no longer freezes, it works fine.  But, none of SFML's events are recognized even though I passed the handle to SFML's RenderWindow.