Menu

#2 ARCADIA vs XARCADE

open
nobody
None
5
2008-01-08
2008-01-08
Anonymous
No

I use the Hotrod SE controller, which maps very much like the X-Arcade controller. Their default keycode mappings follow the MAME defaults. There are two player controls:

P1 (Left) uses numpad 8,6,4,2 and Lctrl for first fire button
P2 (Right) uses r,g,d,f and a for first fire button

In your latest e-uae WIP4, I found there to be #define ARCADIA wrappers around the pertinent X-Arcade keymap return codes for inputevents. I believe some of this is in error, as I had to rename just the ones in keybuf.c as #define XARCADE instead.

In addition, I also added the following to allow for GUI selection:

diff e-uae-0.8.29-WIP4/src/gui-gtk/gtkui.c e-uae/src/gui-gtk/gtkui.c

104c104
< static GtkWidget *joy_widget[2][7];
---
> static GtkWidget *joy_widget[2][9];
324a325,326
> * 7 = xarcade1
> * 8 = xarcade2
354a357,358
> case 7: jsem = JSEM_KBDLAYOUT + 3; break;
> case 8: jsem = JSEM_KBDLAYOUT + 4; break;
371c375
< j0t %= 7;
---
> j0t %= 9;
374c378
< for (i = 0; i < 7; i++) {
---
> for (i = 0; i < 9; i++) {
608,609c612,613
< changed_prefs.jport0 = map_widget_to_jsem (find_current_toggle
(joy_widget[0], 7));
< changed_prefs.jport1 = map_widget_to_jsem (find_current_toggle
(joy_widget[1], 7));
---
> changed_prefs.jport0 = map_widget_to_jsem (find_current_toggle
(joy_widget[0], 9));
> changed_prefs.jport1 = map_widget_to_jsem (find_current_toggle
(joy_widget[1], 9));
1397c1401
< GtkWidget *hbox = gtk_hbox_new (FALSE, 10);
---
> GtkWidget *hbox = gtk_hbox_new (FALSE, 12);
1404c1408
< "Numeric pad",
---
> "Numeric keypad",
1406a1411,1412
> "X-Arcade Left",
> "X-Arcade Right",

./configure CFLAGS="-XARCADE" --with-sdl --with-sdl-gfx --with-sdl-gl

joyport0=kbd5
joyport1=kbd4

The HotRod SE controller works great! Tested with TV Sports: Football, and works like a charm. Please consider making these mods permanently in your source code. Thank you for your excellent work.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.