PDA

View Full Version : e_Key With Gamepad?



cpmusick
08-18-2004, 02:21 PM
Hello.

I have a question. Is it possible to have the e_Key variable recognize gamepad buttons rather than just keyboard buttons? Or perhaps there's another way to achieve this? I'm making an autoplay launcher for a game and I have one page that allows the user to change the key mappings. It works perfectly with the keyboard keys. However, I'm trying to get it to work with gamepads (or joysticks) as well.

I also have another question. Is there any way to use a Custom Mask for just one page? The reason for this is because I'm making it so that when the user clicks Exit, it dissolves out onto the desktop. I have it to where it dissolves to a different page, then exits. However, I want that whole page to be transparent so that you see the desktop appear as the window dissolves. Not sure if this can be done though. :huh

If anyone can help me with either of these questions it would be highly appreciated. :)

Intrigued
08-18-2004, 03:31 PM
Is it possible to have the e_Key variable recognize gamepad buttons rather than just keyboard buttons?
Interesting!

For the last couple years (until a few months ago, gaming is on hold for the most part due to AMS 5 projects, learning) I have used the NOSTROMO n50 game pad by Belkin. An excellent piece of equipment and a low learning curve as well, in my opinion.

It sure would seem like that such an idea would be feasible. I am going to have to look at making a little application to test that theory, when I get a chance.

If you have success I would appreciate hearing about such.

Sincerely,

cpmusick
08-20-2004, 02:43 AM
Well, so far no success. I was thinking I could use a separate program that could detect the gamepad buttons, then output the info somewhere like the registry or a TXT file, then have autoplay media studio import that info. Something like that would be possible. However, I'm not advanced enough in programming to create a program like that. :(

Georges
08-20-2004, 05:49 AM
Hi,

gamepads can be usefull in medical applications also. Example: there exists a disease called lewy Body dementia that is characterised (among other symptoms) by fluctuations in the consciousness level during the day. This is tricky as family members do not always evaluate the condition as serious because the patients has a lot of "better" moments. If one can measure simple motor reaction times during the day then on can "objectively" measure and visualise these pathological fluctuations. This is a simple apllication , however not a lot of doctors use it as special purpose reaction times measurement tools are rather clumsy and expensive. Measuring RT's with a software program and keyborad is however not very accurate as bouncing times of keys and subroutines in windows to "handle" the keys add 40 to 50 msec variance to the measurement. However the gamepad has much better accuracy and could be a very cheap alternative. I plan making such an applet in AMS and if it is not to much work will distribute it for free as this can perhaps contribute to a better and faster diagnosis in this disabling condition (that reacts well to a new class of medication). All help with reading these game pads and buttons is very welcome.

Sincerely,

Georges

PS reaction times vary with age (and training and presentation praradigm : simple vs choice reation time) but for normal people are in the range of 200-400 msec.

kpsmith
08-23-2004, 01:08 PM
I was working with a similar program recently. What you need is a third party app that lets you use a joystick to control the mouse movements. Many of these will let you set the joystick buttons to be any key on the keyboard.

Look for programs like:

Joystick2mouse
Joystick to mouse

ianhull
08-23-2004, 01:39 PM
How about googling for a joystick which will plug into the keyboard socket?

Just an idea!