Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Bindings - other languages
»
DotNet
»
Event System
Print
Pages: [
1
]
Author
Topic: Event System (Read 2820 times)
0 Members and 1 Guest are viewing this topic.
sajuuk
Newbie
Posts: 5
Event System
«
on:
July 30, 2011, 12:49:09 pm »
I was wondering, is it possible to manually pool the events as in c++?
The reason I'm asking this is because I'm working on the screen system explained there :
https://github.com/SFML/SFML/wiki/TutorialScreens
In the c++ version, we manually poll the events so a screen will stop responding to events when it doesn't have the focus.
But in c# we are using handler added to the sharded RenderWindow so a screen will continue to respond to events when it doesn't have the focus.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Event System
«
Reply #1 on:
July 30, 2011, 01:59:21 pm »
No, it's not possible. But you have other solutions: you can unregister a screen's callbacks when it becomes inactive, or you check if the screen is active in its callbacks.
Logged
Laurent Gomila - SFML developer
sajuuk
Newbie
Posts: 5
Event System
«
Reply #2 on:
July 30, 2011, 03:57:00 pm »
That's what I'm doing.
Thanks for help.
Logged
Print
Pages: [
1
]
SFML community forums
»
Bindings - other languages
»
DotNet
»
Event System