The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: spiffo on October 03, 2017, 01:04:57 pm

Title: I-PAC Ultimate giving different Key Down / Key Up Codes
Post by: spiffo on October 03, 2017, 01:04:57 pm
Ok, this is a weird one.

I'm running an I-PAC Ultimate Board on v1.44 Firmware.

When I configure one of the buttons to give a R ALT the board appears to give one code to Windows when the Button is pressed but another code when it is released.

Specifically 18 on Key Down and 17 on Key Up

I checked on this site: https://www.w3.org/2002/09/tests/keys.html (https://www.w3.org/2002/09/tests/keys.html)

I've tried other buttons and the behaviour is the same so I do not think it is a wiring issue on my part, it has to be something to do with the I-PAC or Windows?

It's a really weird one :-(
Title: Re: I-PAC Ultimate giving different Key Down / Key Up Codes
Post by: DeLuSioNal29 on October 03, 2017, 02:32:20 pm
Did you program it as a "Shift" key?  http://www.ultimarc.com/ipac2.html (http://www.ultimarc.com/ipac2.html)

Make sure your player 1 and player 2 buttons are wired correctly.  There are 3 switches on the microswitch itself.  Ground, NC and NO.  It should be connected to NO which is the tab that closest to ground.  A common mistake is that you have 1 connected to NC (Normally closed) which is equivalent of holding the button down and when you let go it activates the switch.

Hope this helps!

DeL
Title: Re: I-PAC Ultimate giving different Key Down / Key Up Codes
Post by: spiffo on October 03, 2017, 04:13:05 pm
Yep all my Micro Switches are wired that way.

Common Wire + Normally Open

There's nothing different about that particular switch.

That Button does have a shifted function of Key 6 (see pic) but so do some of the other ones, so I can Input the Keyboard Numbers 0 - 9 for those Emulators that use them by holding in the Player 1 Start Button and hitting the appropriate Button.

If I make it's Primary Function anything other than R Alt then it doesn't do it !!!

It's mystified me :-(
Title: Re: I-PAC Ultimate giving different Key Down / Key Up Codes
Post by: DeLuSioNal29 on October 03, 2017, 07:02:58 pm
Cuing Andy at Ultimarc to appear in 3, 2, 1...

Maybe I'm wrong here, but what if you click the clear button to remove any shift functions to that key?  By the way, if you press 1 or 2 in the text window you will notice that when you press the start button (1) nothing appears to happen (shifted as it waits for you to press another key) but when you let go it shows just "1".  Same with the Player 2 start button (2).

DeL
Title: Re: I-PAC Ultimate giving different Key Down / Key Up Codes
Post by: spiffo on October 04, 2017, 02:18:46 am
OK, I tried CLEAR to get rid of the Shift Function.

It doesn't make any difference.

Something else I've just noticed though is that on an initial Press On it gives a code 18, but if you keep on holding it down after about 1 sec it changes to a code 17, which is what you get on a Key Off.

I first noticed this when trying to configure a 6 button keypad in Kega Fusion, you go through all the key presses to configure a controller, but because that particular Button effectively gives two different codes when you press it you end up with that one Button doing two functions which mucks everything up.

And this only happens if you are trying to use R Alt