Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,

The last thing I have left to add to my custom device profile is support for an input other than the keyboard/mouse (like a joystick/gamepad). Does flash have any support to add an input like this or would I have to create an external program that will map gamepad buttons to keyboard events?

Thank you!

If your JoyStcik or gamePad only need to send some key events, then you can use flash to do that, otherwise, if you need to send some custom events or notifications, then you will need an external program or a simulation plugin to do that.

If your JoyStcik or gamePad only need to send some key events, then you can use flash to do that, otherwise, if you need to send some custom events or notifications, then you will need an external program or a simulation plugin to do that.

Thanks for the quick reply! Could you please provide an example of how I could send some key events to flash from a gamepad?
Thanks!

Thanks for the quick reply! Could you please provide an example of how I could send some key events to flash from a gamepad?
Thanks!

Sorry, I misunderstood your question. I thought you are going to make a gamepad or joystick using Flash to generate the key events. If you are using an external gamepad or joystick and wants to get keyboard events out of it, then you will need an external program to do that. You can search for some free software to do that too, for example
http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm

Sorry, I misunderstood your question. I thought you are going to make a gamepad or joystick using Flash to generate the key events. If you are using an external gamepad or joystick and wants to get keyboard events out of it, then you will need an external program to do that. You can search for some free software to do that too, for example
http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm

Sounds good. I figured I would have to have something external after a little research but I was wondering if I was missing some internal capabilities of Flash. Thanks again!

Sounds good. I figured I would have to have something external after a little research but I was wondering if I was missing some internal capabilities of Flash. Thanks again!

Hi,
I noticed that the older simulator had a file called hid_devices.cfg in which you could configure gamepad events (it already had devices like Logitech controllers and the XBOX360 Controller). Is there any such file that exists in Simulator 6? If not, I'll just have to add another program to capture gamepad events.
Thanks!

Hi,
I noticed that the older simulator had a file called hid_devices.cfg in which you could configure gamepad events (it already had devices like Logitech controllers and the XBOX360 Controller). Is there any such file that exists in Simulator 6? If not, I'll just have to add another program to capture gamepad events.
Thanks!

We don't have this file anywhere for the current simulator. but you can put the same file in the directory where you launch sim 6, it should still work as the older simulator.

We don't have this file anywhere for the current simulator. but you can put the same file in the directory where you launch sim 6, it should still work as the older simulator.

Hi,
I tried putting the file in:
C:\Program Files\Qualcomm\Brew MP SDK\Toolset 7.6 Rev 0.0.1346462\bin
which is where I have the latest toolset installed. Is this the right directory? If so, then it doesn't work as in the old simulator. Any other suggestions?
Thank you!

Hi,
I tried putting the file in:
C:\Program Files\Qualcomm\Brew MP SDK\Toolset 7.6 Rev 0.0.1346462\bin
which is where I have the latest toolset installed. Is this the right directory? If so, then it doesn't work as in the old simulator. Any other suggestions?
Thank you!

You can also try putting the .cfg file under the fs directory of your created target. by default it is under
c:\brew mp\targets\\fs
If that still doesn't work, then try
c:\brew mp\targets\\fs\sys\
and thank you very much for trying this out. If both don't work, then you need to use an external program go do that, and meanwhile we will investigate how to make it work in sim6.

You can also try putting the .cfg file under the fs directory of your created target. by default it is under
c:\brew mp\targets\\fs
If that still doesn't work, then try
c:\brew mp\targets\\fs\sys\
and thank you very much for trying this out. If both don't work, then you need to use an external program go do that, and meanwhile we will investigate how to make it work in sim6.

Hi,
I tried out both locations to put the file and neither worked. I'll go ahead and try to make a custom program to use as the input to the simulator. Would you have any advice on doing this? Should the program catch gamepad events and emit keyboard events that flash can catch or is there a better way of doing this?
Thanks a lot for your help so far and please keep me updated on any improvements/breakthroughs you make with the simulator.
Thanks!

Hi,
I tried out both locations to put the file and neither worked. I'll go ahead and try to make a custom program to use as the input to the simulator. Would you have any advice on doing this? Should the program catch gamepad events and emit keyboard events that flash can catch or is there a better way of doing this?
Thanks a lot for your help so far and please keep me updated on any improvements/breakthroughs you make with the simulator.
Thanks!

Not all profile accepts events from pc keyboard input. the Flip phone doesn't take pc keyboard input. Sapphire profile can accept qwerty pc keyboard input, Candybar only accepts Number input and arrow key. If you were using Flip phone profile, then try to use Sappire profile to create a target and then try the .cfg file at these locations again.
Thanks.

Not all profile accepts events from pc keyboard input. the Flip phone doesn't take pc keyboard input. Sapphire profile can accept qwerty pc keyboard input, Candybar only accepts Number input and arrow key. If you were using Flip phone profile, then try to use Sappire profile to create a target and then try the .cfg file at these locations again.
Thanks.

Hi,
I had actually tried this with a custom device profile I had made that accepts keyboard input. I tried it just now with the Sapphire profile with the same results. This probably doesn't mean much but in the simulator log window, I see the following 3 lines:
Device Connect VID 0x2B61, PID 0x6F1D
Device Connect VID 0x2B60, PID 0x6F1D
Device Connect VID 0x1A5C, PID 0x3033
I'm guessing the first 2 might be keyboard/mouse and the third is the gamepad that's connected. So somewhere, it's getting detected, just not forwarded to the simulator. Any other ideas?
Thanks!

Hi,
I had actually tried this with a custom device profile I had made that accepts keyboard input. I tried it just now with the Sapphire profile with the same results. This probably doesn't mean much but in the simulator log window, I see the following 3 lines:
Device Connect VID 0x2B61, PID 0x6F1D
Device Connect VID 0x2B60, PID 0x6F1D
Device Connect VID 0x1A5C, PID 0x3033
I'm guessing the first 2 might be keyboard/mouse and the third is the gamepad that's connected. So somewhere, it's getting detected, just not forwarded to the simulator. Any other ideas?
Thanks!

Have you tried your game pad and hid_devices.cfg on the deprecated simulator? Does that work? What game pad are you using? Also what is the plaform version that you are using? All information will help us find out why it is not working.
Thanks!

Have you tried your game pad and hid_devices.cfg on the deprecated simulator? Does that work? What game pad are you using? Also what is the plaform version that you are using? All information will help us find out why it is not working.
Thanks!

Hi,
This has been tried and tested working with the deprecated Simulator (5) as well as fully working in the older simulator in Brew 4.x
My current platform is 1.0.2.410 and has also been tried on 1.1.0.636 PRO
The gamepad is a Zeebo gamepad.
Thanks!

Hi,
This has been tried and tested working with the deprecated Simulator (5) as well as fully working in the older simulator in Brew 4.x
My current platform is 1.0.2.410 and has also been tried on 1.1.0.636 PRO
The gamepad is a Zeebo gamepad.
Thanks!

Please try putting the hid_devices.cfg file under \fs\sys\mod
instead of fs\sys dir. and try that again.
Thanks for trying out.

Please try putting the hid_devices.cfg file under \fs\sys\mod
instead of fs\sys dir. and try that again.
Thanks for trying out.

Hi,
Tried it there and still no luck.

Hi,
Tried it there and still no luck.

Is there anything new information as far as support for gaming peripherals in the simulator? The simulator does the plugging/unplugging of the controlller:
AEEHID.c:4858 - Device connect VID 0x1A5C, PID 0x3033
AEEHID.c:4936 - Device disconnect VID 0x1A5C, PID 0x3033
However, no events get through to the UI or the event handler of an app.

Is there anything new information as far as support for gaming peripherals in the simulator? The simulator does the plugging/unplugging of the controlller:
AEEHID.c:4858 - Device connect VID 0x1A5C, PID 0x3033
AEEHID.c:4936 - Device disconnect VID 0x1A5C, PID 0x3033
However, no events get through to the UI or the event handler of an app.

We are still working on it, will get back to you as soon as we have a solution.

We are still working on it, will get back to you as soon as we have a solution.