Game Development Community

Keyboard issues

by Neil Marshall · in Torque Game Engine · 04/12/2006 (6:30 am) · 0 replies

I'm the guy working on the TGE plugin and I'm having some trouble wrapping my head around how the keyboard works in TGE. I was hoping someone could help explain it to me...

As far as I know DirectInput only kicks in when you enter 3D mode (keyboard0 input device acquired shows up in the console)

If so, how is the typing handled in the 2D GUI windows?



I believe I'm having 2 issues with the ActiveX control and the keyboard. The first is in the 2D GUI windows. No WM_ messages appear to be firing for typing and no text appears in the Plugin TGE's textboxes.

The other issue, which is probably related, is when I'm in the 3D view, I can walk around using WASD but it often thinks I'm hitting key combonations such as alt-d and what not so I start typing in the URL bar or launch a search dialog or something. It's as if TGE isn't stopping the typing messages from percolating up to the parent window. Is there any way I can tell DirectInput to not bubble the event?