Re: [vos-d] WXGLCanvas keyboard input problem...

2007-03-13 Thread Peter Amstutz
So Ken, did you get a chance to make this change, and if so did it fix Ter'Angreal for you? On Sun, Mar 11, 2007 at 04:40:03PM -0700, Ken Taylor wrote: Peter Amstutz wrote: On Sun, Mar 11, 2007 at 10:27:52PM +0100, res wrote: I would say neither is right. Mouse enter and gain focus are

Re: [vos-d] WXGLCanvas keyboard input problem...

2007-03-13 Thread Ken Taylor
Peter Amstutz wrote: So, try re-adding SetFocus() to the csGLCanvas::OnEnterWindow() method (in CS/plugins/video/canvas/wxgl/GLWXDriver2D.cpp). Then a little later: So Ken, did you get a chance to make this change, and if so did it fix Ter'Angreal for you? Oh yeah, it worked :) I'm not

[vos-d] WXGLCanvas keyboard input problem...

2007-03-11 Thread Ken Taylor
So some further investigation has revealed that the problem I've been having with the wxglcanvas is an issue of keyboard focus. For some reason, the canvas never gets the keyboard focus in ter'angreal when using my compiled wxgl.dll. Same deal with wxtest (there's a weird 1x1 window that has the

Re: [vos-d] WXGLCanvas keyboard input problem...

2007-03-11 Thread Peter Amstutz
Bingo! I just reviewed a couple of old checkouts of Crystal Space I have, and it looks like some one cleaned up (i.e. broke) the plugin. I orginally had a function: void csGLCanvas::OnEnterWindow( wxMouseEvent WXUNUSED(event) ) { SetFocus(); } Which fixes precisely the keyboard focus

Re: [vos-d] WXGLCanvas keyboard input problem...

2007-03-11 Thread res
On 11.03.2007 21:22, Peter Amstutz wrote: Bingo! I just reviewed a couple of old checkouts of Crystal Space I have, and it looks like some one cleaned up (i.e. broke) the plugin. I orginally had a function: void csGLCanvas::OnEnterWindow( wxMouseEvent WXUNUSED(event) ) {

Re: [vos-d] WXGLCanvas keyboard input problem...

2007-03-11 Thread Peter Amstutz
On Sun, Mar 11, 2007 at 10:27:52PM +0100, res wrote: I would say neither is right. Mouse enter and gain focus are two distinct events, and a mouse enter generally does not cause a focus change. Example: focus has an edit field, you want to type something. For some reason, the mouse gets moved

Re: [vos-d] WXGLCanvas keyboard input problem...

2007-03-11 Thread res
On 11.03.2007 22:59, Peter Amstutz wrote: On Sun, Mar 11, 2007 at 10:27:52PM +0100, res wrote: I would say neither is right. Mouse enter and gain focus are two distinct events, and a mouse enter generally does not cause a focus change. Example: focus has an edit field, you want to type