Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: I-PAC Ultimate giving different Key Down / Key Up Codes  (Read 1875 times)

0 Members and 1 Guest are viewing this topic.

spiffo

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:August 11, 2022, 03:19:49 pm
  • I want to build my own arcade controls!
I-PAC Ultimate giving different Key Down / Key Up Codes
« 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

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 :-(

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4778
  • Last login:October 20, 2023, 11:39:06 pm
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Re: I-PAC Ultimate giving different Key Down / Key Up Codes
« Reply #1 on: October 03, 2017, 02:32:20 pm »
Did you program it as a "Shift" key?  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
Stop by my Youtube channel and leave a comment:

spiffo

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:August 11, 2022, 03:19:49 pm
  • I want to build my own arcade controls!
Re: I-PAC Ultimate giving different Key Down / Key Up Codes
« Reply #2 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 :-(

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4778
  • Last login:October 20, 2023, 11:39:06 pm
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Re: I-PAC Ultimate giving different Key Down / Key Up Codes
« Reply #3 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
Stop by my Youtube channel and leave a comment:

spiffo

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:August 11, 2022, 03:19:49 pm
  • I want to build my own arcade controls!
Re: I-PAC Ultimate giving different Key Down / Key Up Codes
« Reply #4 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
« Last Edit: October 04, 2017, 02:45:50 am by spiffo »