Hello,
I've been trying to get fullscreen toggling to work in SFML.Net, and here's my code for that:
public void ToggleFullscreen
(){ WindowStyle
^= Styles
.Fullscreen; IsFullscreen
= !IsFullscreen
; if (window
!= null && window
.IsOpen) { window
.Close (); } window
= new RenderWindow
((IsFullscreen
? VideoMode
.DesktopMode : WindowMode
), WindowTitle, WindowStyle
);} But when I close() the window, all my events seem to get cleared. How do I fix this?
Thanks,
Gus