SFML community forums
Help => Window => Topic started by: Imbue on March 26, 2009, 05:47:58 am
-
I'm using wxSFMLCanvas with wxWidgets. Drawing works great, but I'm having trouble getting input to work.
If I manually call wxWindow::CaptureMouse(), then mouse input will work, but it block mouse input to other controls.
I've noticed that I can't get the canvas to even accept focus.
Any help would be greatly appreciated.
-
What if you use wxWidgets input/event handling rather than SFML's one ?
-
Thanks for the quick reply.
I'm sure that would work, but it seems like a bit of a hack. Besides, sf::Input is much nicer for what I'm doing, and I've already written a lot of code for it.
I think it should be possible for sf::Input to work with wxWidgets, I just need to figure out how. I still can't get the canvas control to accept focus, and I've tried everything I can think of.
-
Yeah, sometimes it's just a flag to set :)
Unfortunately, I can't help much about this, I haven't used wxWidgets for a long time.