Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Double input on controller

If you have a question or need help, this is the place to be.
Post Reply
kushty
Posts: 4
Joined: Sun Nov 21, 2010 4:07 pm

Double input on controller

Post by kushty »

Can any one help me please?

I have my ps3 controller connected via the motioninjoy drivers. When I try to program it in eventghost it registers left and right dpad presses as "HID.Value.20 5" and "HID.Value.20 7". It immediately registers a "HID.Value.20 0" afterwards which is presumably to mark the dpad returning to normal. Unfortunately, this means it registers it twice as I can only specify "HID.Value.20" as an event, not "HID.Value.20 5". Therefore it will go right twice when I only want it to go once.

My up and down work because they register as independent buttons e.g. "HID.Button.12". Unfortunately, pressing right or left on the dpad for some reason will activate the up and down action as well. Does anyone know how I can fix these two problems please?

Also, how can I make an analog stick return the analog values to an XBMCRepeat profile?

Thanks in advance :)
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Double input on controller

Post by jonib »

kushty wrote:Also, how can I make an analog stick return the analog values to an XBMCRepeat profile?
I don't think it's supported at the moment, I'll check if possible.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
kushty
Posts: 4
Joined: Sun Nov 21, 2010 4:07 pm

Re: Double input on controller

Post by kushty »

Thanks. Anyone got any ideas for how to sort the other issues?
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: Double input on controller

Post by specter333 »

I have a similar problem with my Gyration Air Remote. It literally sends 15 messages on some key presses. For those keys I came up with this work around macro I call "Key Fix" to catch the first one and ignore the rest. It seems to work well, only downside is there is a wait time between the key press and executing the macro but not enough to really notice.

It's simply
Wait: 1.0 sec; Gives time for the remote to stop transmitting. This can be shorter if there are fewer repeats.

Clear Pending Events; since this macro was triggered from the first code it cancels the rest that built up in the cue during the wait action.

Jump to ..., whatever ever macro your actually wanting to control.

Of course if anyone has a better solution I would be happy to hear it.
specter333
Experienced User
Posts: 95
Joined: Thu Dec 27, 2007 12:26 am

Re: Double input on controller

Post by specter333 »

Ooh, and your other question. Some of my Gyration buttons are seen as two different input devices generating two commands. An example might be "HID.button.205" and "Keyboard.pause/play" from the same key press. The "Keyboard.pause/play" is also seen by the system and controls media players without using EventGhost. I assign "Keyboard.pause/play" to a do nothing comment which blocks it from being seen by the system and use "HID.button.205" for my events.

Unfortunately not all the system commands get blocked when assigned to a macro such as the volume up down keys. When ever I use them in EG to control a media players the system volume changes as well.

So I would check in other types of input devices and see if your getting multiple messages from one key press. If that's the case you may be able to block the unwanted ones.
kushty
Posts: 4
Joined: Sun Nov 21, 2010 4:07 pm

Re: Double input on controller

Post by kushty »

Thanks for your reply. The delay thing works, although I need to have a 1.3 second delay to be effective. Still, better than nothing!

Unfortunately, I can't see a second input being registered when I press up and down so the two are still interchangable ie up = down and vice versa. So I still don't have a working solution :(
kushty
Posts: 4
Joined: Sun Nov 21, 2010 4:07 pm

Re: Double input on controller

Post by kushty »

Help!
Post Reply