Keypad Problem
by Maxime Jouin · in Torque Game Engine · 05/24/2007 (8:52 am) · 5 replies
I am having problems with the keypad becoming inactive.
I have an application with som GUI fields set to only numbers and when I type numbers in using the keypad it works sometimes but not others. I have verified the key mappings on all instantiated action maps and none of them have bindings on keys numpad0 through numpad9.
Any help is welcome.
Thank you.
I have an application with som GUI fields set to only numbers and when I type numbers in using the keypad it works sometimes but not others. I have verified the key mappings on all instantiated action maps and none of them have bindings on keys numpad0 through numpad9.
Any help is welcome.
Thank you.
#2
05/29/2007 (1:30 am)
I just removed the call to "activateDirectInput()" in the script method PlayGui::onWake and everything works fine now.
#3
05/29/2007 (3:35 am)
I wonder what that means.
#4
What is "activateDirectInput()" supposed to do anyway?
05/29/2007 (8:24 am)
To be more precise, I have a GUI that is used BEFORE connecting to the Torque server (and beofre creating the PlayGUI) and the keypad works fine. When the user finally connects to the server and the PlayGui::onWake is called, I'm having my keypad problem. By disabling the call to "activateDirectInput()" the keypad works fine before and after I connect to the server. The rest of the input functionality is not affected in any way.What is "activateDirectInput()" supposed to do anyway?
#5
I presume it's part of the Windows API, but I'm really talking over my head, here. I've been wondering about that for awhile. I wonder if someone knowledgeable could share...?
05/29/2007 (3:27 pm)
That's kinda where I was coming from. What the heck does it do if you can dispose of it so lightly? Or perhaps it is being activated somewhere else? I presume it's part of the Windows API, but I'm really talking over my head, here. I've been wondering about that for awhile. I wonder if someone knowledgeable could share...?
Torque Owner Lee Latham
Default Studio Name