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: IPac - SHIFTed keys via toggle switch?  (Read 3144 times)

0 Members and 1 Guest are viewing this topic.

Brad Lee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 619
  • Last login:May 26, 2005, 11:39:04 am
    • 666
IPac - SHIFTed keys via toggle switch?
« on: March 24, 2003, 02:15:10 am »
My current setup is an IPac which is mapped pretty clsoe to the mame defaults, i.e. p1 buttons 1-4 are ctrl/alt/space/shift. I was playing some regular PC games and a couple had problems mapping funtions to these keys. What I did was jsut reprogram the ipac to use A/B/C/D for the buttons and was able to use them

While I was poking around in winipac i played with shifted keys a little bit. RIght now I dont have anything assinged for a shift button or shifted keys. How exactly is hte shifted key handled? If I wire P2button8 to a toggle(or other on/off button, not a momentary contact) and flip the switch so that circuit is closed, If i hit p1button1, I assume it sends whatever is programmed to the pc. Does the ipac stay shift-ed for as long as the circuit is closed?
Is this an effective way to do on-the-fly remapping?

Also since p2button8(or maybe 7?) is the 3rd led output, and if I wire my toggle to that line, when it's closed, the led should light, right?

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re:IPac - SHIFTed keys via toggle switch?
« Reply #1 on: March 24, 2003, 02:38:06 am »
Also since p2button8(or maybe 7?) is the 3rd led output, and if I wire my toggle to that line, when it's closed, the led should light, right?

Yep, you would be correct there.

Not sure about the rest.

Distortion

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 267
  • Last login:June 10, 2016, 04:39:20 pm
  • Saints Row 2, Sucka
    • Volition
Re:IPac - SHIFTed keys via toggle switch?
« Reply #2 on: March 24, 2003, 09:26:31 am »
That's quite an interesting idea, I never would have thought of it, but why not just use a few different schematics in the software?
Game programmers do not play games for a living.  Would you say a mechanic drives cars for a living?

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:IPac - SHIFTed keys via toggle switch?
« Reply #3 on: March 24, 2003, 09:36:29 am »
My current setup is an IPac which is mapped pretty clsoe to the mame defaults, i.e. p1 buttons 1-4 are ctrl/alt/space/shift. I was playing some regular PC games and a couple had problems mapping funtions to these keys. What I did was jsut reprogram the ipac to use A/B/C/D for the buttons and was able to use them

While I was poking around in winipac i played with shifted keys a little bit. RIght now I dont have anything assinged for a shift button or shifted keys. How exactly is hte shifted key handled? If I wire P2button8 to a toggle(or other on/off button, not a momentary contact) and flip the switch so that circuit is closed, If i hit p1button1, I assume it sends whatever is programmed to the pc. Does the ipac stay shift-ed for as long as the circuit is closed?
Is this an effective way to do on-the-fly remapping?

Also since p2button8(or maybe 7?) is the 3rd led output, and if I wire my toggle to that line, when it's closed, the led should light, right?
Short answer is you are using a non-standard application of the shift function.  It's main function is to allow you to use extra functions (admin functions - enter, tab, etc.) without having extra buttons on the keyboard.

Shift key explanation is here http://www.ultimarc.com/ipac3.html

I think your idea would work, except that the I-PAC will send the keycode on key release in shifted mode.  Probably not a problem for buttons, but it will be bad for buttons - what you want to do is the following -

Save your standard configuration in the WinIpac software as mame.ipc.  Save your other confiq as pcgame.ipc.

Write a batch file (yes they still work in windows) as follows.  (You might need to add cd commands to change directories and/or include full paths).

winipac.exe pcgame.ipc
pcgame.exe
winipac.exe mame.ipc

Make a shortcut to this batch file to launch your pc game.  The batch file will load the custom codeset, launch the PC game, and then load the mame codeset back when you quit.

(I think you also have to change the MAME/ALT jumper setting as well).
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Brad Lee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 619
  • Last login:May 26, 2005, 11:39:04 am
    • 666
Re:IPac - SHIFTed keys via toggle switch?
« Reply #4 on: March 24, 2003, 10:57:40 am »
OK I was curious about using winipac from a commandline(or in a batch)

I've got saved copies of mame.ipc, nfs.ipc, quake.ipc and such so that's not a problem to attach a batch to the games


When you say the shifted keys operate on key release, if I hold a button down it'd just send once, when i let go    ?     If thats the case that'd definitely be not good for shooters that have repeat fire, or a run button. If I read that correctly.



Once I had Need for Speed installed I barely even fired up mame this weekend.. even was playing splitscreen with a buddy since I got 2 sticks on my cab. Now I jsut need to convince the wife that I *NEED* 2 sitdown cockpit cabs side by side linked together

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re:IPac - SHIFTed keys via toggle switch?
« Reply #5 on: March 24, 2003, 11:12:55 am »
When you say the shifted keys operate on key release, if I hold a button down it'd just send once, when i let go    ?     If thats the case that'd definitely be not good for shooters that have repeat fire, or a run button. If I read that correctly.

That's how I read it from the Ultimarc text.  You could try it out with your I-PAC/2 yourself if you wanted to verify.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Brad Lee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 619
  • Last login:May 26, 2005, 11:39:04 am
    • 666
Re:IPac - SHIFTed keys via toggle switch?
« Reply #6 on: March 24, 2003, 11:55:16 am »
I'll give it a shot cuz I'm re-wiring my entire CP anyway. Like most of the rest of the questions, the best way to find out is to try it

From re reading the ultimarc page linked above it seems that the shift key itself works on release to avoid unwanted keys, but that when shift is held down, your normal keys fire as expected

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re:IPac - SHIFTed keys via toggle switch?
« Reply #7 on: March 25, 2003, 05:43:59 pm »
Yes, only the shift key itself works on release, the others are normal when the shift key is held down.

There is a new version of the WinIPAC program on the way which gets rid of the "OK" box after a batch mode program and corrects a couple of other issues. I will be testing it tomorrow and then upload it.

Andy


Brad Lee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 619
  • Last login:May 26, 2005, 11:39:04 am
    • 666
Re:IPac - SHIFTed keys via toggle switch?
« Reply #8 on: March 25, 2003, 11:58:09 pm »
Thanks

I did some testing of multiple configs, notwith a toggle but a heavy book keeping the shift button pushed:) and it worked flawlessly
I also did some playing with batch files and that works pretty good too

and cool about the winipac prog, I'll keep an eye out for it

_Iz-

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 703
  • Last login:August 02, 2025, 11:56:48 pm
  • Time to coin up!
Re:IPac - SHIFTed keys via toggle switch?
« Reply #9 on: March 27, 2003, 03:17:42 pm »
Andy - I don't seem to be able to find any version numbers or date posted on the WinIpac download page for the utility. Makes it difficult to see if you have the current version without downloading it again.

_Iz-

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 703
  • Last login:August 02, 2025, 11:56:48 pm
  • Time to coin up!
Re:IPac - SHIFTed keys via toggle switch?
« Reply #10 on: April 08, 2003, 04:50:54 pm »
Yes, only the shift key itself works on release, the others are normal when the shift key is held down.

There is a new version of the WinIPAC program on the way which gets rid of the "OK" box after a batch mode program and corrects a couple of other issues. I will be testing it tomorrow and then upload it.

Andy

Has this new version been released yet?