roger
8th February 2008, 05:45
There is actually an option for the X-Arcade controller under 'Game & I/O Ports', but it's only for either the left or the right controller. Although it works, I found it that a better way to set up WinUAE for the X-Arcade is to not even bother with the 'Game & I/O Ports' setting, but to use a custom keyboard configuration under 'Input' to map the controller key code to the Amiga input.
Under 'Game & I/0 Ports', set port 0 to 'Mouse *'.
No need to change the setting for port 1.
Paste the following code into all the configurations files with which you wish to use the X-Arcade controller. Make sure you paste the code at the very end of the file. If you already have settings for 'input.4.leyboard.0', you will have to delete those.
input.4.keyboard.0.button.2=KEY_F1.0
input.4.keyboard.0.button.3=KEY_F2.0
input.4.keyboard.0.button.4=KEY_ALT_LEFT.0
input.4.keyboard.0.button.5=KEY_ALT_RIGHT.0
input.4.keyboard.0.button.6=SPC_ENTERGUI.0
input.4.keyboard.0.button.7=KEY_CURSOR_DOWN.0
input.4.keyboard.0.button.16=JOY1_3RD_BUTTON.0
input.4.keyboard.0.button.17=SPC_DISKSWAPPER_PREV.0
input.4.keyboard.0.button.18=SPC_DISKSWAPPER_NEXT.0
input.4.keyboard.0.button.19=JOY1_UP.0
input.4.keyboard.0.button.26=SPC_DISKSWAPPER_INSERT0.0
input.4.keyboard.0.button.27=KEY_ENTER.0
input.4.keyboard.0.button.29=JOY2_FIRE_BUTTON.0
input.4.keyboard.0.button.30=JOY1_FIRE_BUTTON.0
input.4.keyboard.0.button.31=JOY1_2ND_BUTTON.0
input.4.keyboard.0.button.32=JOY1_LEFT.0
input.4.keyboard.0.button.33=JOY1_DOWN.0
input.4.keyboard.0.button.34=JOY1_RIGHT.0
input.4.keyboard.0.button.42=KEY_SPACE.0
input.4.keyboard.0.button.46=SPC_QUIT.0
input.4.keyboard.0.button.56=JOY2_2ND_BUTTON.0
input.4.keyboard.0.button.57=JOY2_3RD_BUTTON.0
input.4.keyboard.0.button.72=JOY2_UP.0
input.4.keyboard.0.button.75=JOY2_LEFT.0
input.4.keyboard.0.button.77=JOY2_RIGHT.0
input.4.keyboard.0.button.80=JOY2_DOWN.0
This will create a custom mapping for 'Configuration #4'. The next time you load this configuration in the WinUAE GUI, make sure you go and select 'Configuration #4' and save the configuration file.
The mappings will be as follows. Note that they are mapped to 'Mode 1', which is the default, of the X-Arcade controller:
X-Arcade | Amiga
---------------------------|---------------------------------
Left Joystick | Joystick 1
Left Button 1 (Left CTRL) | Joystick 1, Button 1 (fire)
Left Button 2 (Left Alt) | Joystick 1, Button 2
Left Button 3 (Space) | Joystick 1, Button 3
Left Button 4 (Left Shift) | Space
Left Button 5 (Z) |
Left Button 6 (X) |
Left Button 7 (C) | Quit Emulator
Left Button 8 (5) | Enter GUI
|
Right Joystick | Joystick 2
Right Button 1 (A) | Joystick 2, Button 1 (fire)
Right Button 2 (S) | Joystick 2, Button 2
Right Button 3 (Q) | Joystick 2, Button 3
Right Button 4 (W) | Previous Slot in Disk Swapper
Right Button 5 (E) | Next Slot in Disk Swapper
Right Button 6 ([) | Insert disk in current Disk Swapper slot in DF0:
Right Button 7 (]) | Numpad Enter
Right Button 8 (6) | Cursor down
|
Left Flipper Button (3) | Left Alt
Right Flipper Button (4) | Right Alt
|
1 Player Button (1) | F1
2 Player Button (2) | F2
Note that this setup allows the use of both Joysticks on the controller and the mouse on port 0 concurrently.
I use this setup with MameWAH where I don't want to resort to messing with the WinUAE GUI for swapping disks and quitting the emulator. One of the buttons is mapped to 'Enter GUI' for those cases where there is no other choice.
Most keys are mapped similarly to the X-Arcade mapping already built into WinUAE. The Flipper buttons are also mapped to the Alt keys of the Amiga, which should work with most Pinball games out there. For that purpose, one of the buttons is mapped to the 'Cursor Down' key of the Amiga.
Under 'Game & I/0 Ports', set port 0 to 'Mouse *'.
No need to change the setting for port 1.
Paste the following code into all the configurations files with which you wish to use the X-Arcade controller. Make sure you paste the code at the very end of the file. If you already have settings for 'input.4.leyboard.0', you will have to delete those.
input.4.keyboard.0.button.2=KEY_F1.0
input.4.keyboard.0.button.3=KEY_F2.0
input.4.keyboard.0.button.4=KEY_ALT_LEFT.0
input.4.keyboard.0.button.5=KEY_ALT_RIGHT.0
input.4.keyboard.0.button.6=SPC_ENTERGUI.0
input.4.keyboard.0.button.7=KEY_CURSOR_DOWN.0
input.4.keyboard.0.button.16=JOY1_3RD_BUTTON.0
input.4.keyboard.0.button.17=SPC_DISKSWAPPER_PREV.0
input.4.keyboard.0.button.18=SPC_DISKSWAPPER_NEXT.0
input.4.keyboard.0.button.19=JOY1_UP.0
input.4.keyboard.0.button.26=SPC_DISKSWAPPER_INSERT0.0
input.4.keyboard.0.button.27=KEY_ENTER.0
input.4.keyboard.0.button.29=JOY2_FIRE_BUTTON.0
input.4.keyboard.0.button.30=JOY1_FIRE_BUTTON.0
input.4.keyboard.0.button.31=JOY1_2ND_BUTTON.0
input.4.keyboard.0.button.32=JOY1_LEFT.0
input.4.keyboard.0.button.33=JOY1_DOWN.0
input.4.keyboard.0.button.34=JOY1_RIGHT.0
input.4.keyboard.0.button.42=KEY_SPACE.0
input.4.keyboard.0.button.46=SPC_QUIT.0
input.4.keyboard.0.button.56=JOY2_2ND_BUTTON.0
input.4.keyboard.0.button.57=JOY2_3RD_BUTTON.0
input.4.keyboard.0.button.72=JOY2_UP.0
input.4.keyboard.0.button.75=JOY2_LEFT.0
input.4.keyboard.0.button.77=JOY2_RIGHT.0
input.4.keyboard.0.button.80=JOY2_DOWN.0
This will create a custom mapping for 'Configuration #4'. The next time you load this configuration in the WinUAE GUI, make sure you go and select 'Configuration #4' and save the configuration file.
The mappings will be as follows. Note that they are mapped to 'Mode 1', which is the default, of the X-Arcade controller:
X-Arcade | Amiga
---------------------------|---------------------------------
Left Joystick | Joystick 1
Left Button 1 (Left CTRL) | Joystick 1, Button 1 (fire)
Left Button 2 (Left Alt) | Joystick 1, Button 2
Left Button 3 (Space) | Joystick 1, Button 3
Left Button 4 (Left Shift) | Space
Left Button 5 (Z) |
Left Button 6 (X) |
Left Button 7 (C) | Quit Emulator
Left Button 8 (5) | Enter GUI
|
Right Joystick | Joystick 2
Right Button 1 (A) | Joystick 2, Button 1 (fire)
Right Button 2 (S) | Joystick 2, Button 2
Right Button 3 (Q) | Joystick 2, Button 3
Right Button 4 (W) | Previous Slot in Disk Swapper
Right Button 5 (E) | Next Slot in Disk Swapper
Right Button 6 ([) | Insert disk in current Disk Swapper slot in DF0:
Right Button 7 (]) | Numpad Enter
Right Button 8 (6) | Cursor down
|
Left Flipper Button (3) | Left Alt
Right Flipper Button (4) | Right Alt
|
1 Player Button (1) | F1
2 Player Button (2) | F2
Note that this setup allows the use of both Joysticks on the controller and the mouse on port 0 concurrently.
I use this setup with MameWAH where I don't want to resort to messing with the WinUAE GUI for swapping disks and quitting the emulator. One of the buttons is mapped to 'Enter GUI' for those cases where there is no other choice.
Most keys are mapped similarly to the X-Arcade mapping already built into WinUAE. The Flipper buttons are also mapped to the Alt keys of the Amiga, which should work with most Pinball games out there. For that purpose, one of the buttons is mapped to the 'Cursor Down' key of the Amiga.