English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 04 August 2014, 00:30   #1
swann
 
Posts: n/a
[SOLVED] x-arcade not working on debian

Hello,
FS-UAE is working great on my debian jessie, except for the fact that it doesn't recognize my x-arcade...
I've read the documentation but still can't resolve, since I have the xarcade.ini in /usr/share/fs-uae/input/common/ but haven't any configuration file in ~/Documents/FS-UAE/Configurations/ !! I've also tried to configure the custom joystick port but with no success.

Any idea? Thanks in advance

Last edited by swann; 08 August 2014 at 17:38.
 
Old 06 August 2014, 21:59   #2
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Hi, is this an X-Arcade controller hooking into the PS/2 keyboard port?
FrodeSolheim is offline  
Old 06 August 2014, 23:38   #3
swann
 
Posts: n/a
No, it's connected via usb. The keyboard is usb too; I tried both with the keyboard plugged and not. X-Arcade is the mono version. The odd stuff is I can't find any configuration file!
 
Old 06 August 2014, 23:46   #4
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Well, my point was that X-Arcade is basically a keyboard, not a joystick/gamepad (if it also applies to your X-Arcade version), which is why FS-UAE does not recognize it as a joystick/gamepad. FS-UAE only sees "one keyboard" which includes keypresses from all physical keyboards.

It is correct that there are some xarcade.ini files in the input directory. These are from the original game center project, and is basically just different keyboard mappings. In that project, you had to specifically tell the system that an Arcade controller was connected as it couldn't be autodetected (the controller piggybacked on the PS/2 keyboard connector).

This could in theory be done for FS-UAE as well, but unless FS-UAE supports mapping based on originating keyboard, you'd still get the problem that the keys "used" by X-Arcade cannot also be used to emulate the Amiga keyboard keys.

But the simple solution for now is to just edit keyboard.ini (instead of xarcade.ini) and setup your mapping there.
FrodeSolheim is offline  
Old 07 August 2014, 16:12   #5
swann
 
Posts: n/a
Well, it works! Actually I just created a blank /usr/share/fs-uae/input/common/keyboard.ini and then the Launcher showed me this both in Custom Configuration and Advanced Settings:

joystick_port_4 =
keyboard_key_kp5 = action_joy_1_down
keyboard_key_kp4 = action_joy_1_left
keyboard_key_kp6 = action_joy_1_right
keyboard_key_kp8 = action_joy_1_up
keyboard_key_lctrl = action_joy_1_fire_button


I just corrected keyboard_key_kp5 with keyboard_key_kp2 (it's the default command for "down" in the X-Arcade). Now I got two problems:

1. When I launch a game and press F12, keyboard works no more for the configuration manager, so I have to reboot each time to come out from a game.

2. I can't get X-Arcade working on diagonals. I tried several settings but I really don't know the correct syntax. I.e. I tried this (that resembles MAME):
keyboard_key_kp1 = action_joy_1_left action_joy_1_down
keyboard_key_kp2 = action_joy_1_down
keyboard_key_kp3 = action_joy_1_right action_joy_1_down
keyboard_key_kp4 = action_joy_1_left
keyboard_key_kp6 = action_joy_1_right
keyboard_key_kp7 = action_joy_1_left action_joy_1_up
keyboard_key_kp8 = action_joy_1_up
keyboard_key_kp9 = action_joy_1_right action_joy_1_up
keyboard_key_lctrl = action_joy_1_fire_button


No help came from here http://fs-uae.net/input-mapping
 
Old 07 August 2014, 19:07   #6
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by swann View Post
Well, it works! Actually I just created a blank /usr/share/fs-uae/input/common/keyboard.ini
Don't do that (see below).

Quote:
Originally Posted by swann View Post
and then the Launcher showed me this both in Custom Configuration and Advanced Settings [...]
keyboard_key_kp5 = action_joy_1_down
keyboard_key_kp4 = action_joy_1_left
keyboard_key_kp6 = action_joy_1_right
keyboard_key_kp8 = action_joy_1_up
keyboard_key_lctrl = action_joy_1_fire_button
You must have added this yourself at one point

Quote:
Originally Posted by swann View Post
1. When I launch a game and press F12, keyboard works no more for the configuration manager, so I have to reboot each time to come out from a game.
That's because you erased keyboard.ini which contains the required [menu] section...

Quote:
Originally Posted by swann View Post
2. I can't get X-Arcade working on diagonals. I tried several settings but I really don't know the correct syntax. I.e. [...] No help came from here http://fs-uae.net/input-mapping
That page links to http://fs-uae.net/input-actions, which lists (among other things):
Code:
action_joy_1_left_up
action_joy_1_left_down
action_joy_1_right_up
action_joy_1_right_down
Input mapping like this works (though it is a bit inflexible in that the mapping is active no matter what device and port modes are set) I might add a nicer way to add named/custom key sets later.
FrodeSolheim is offline  
Old 08 August 2014, 17:37   #7
swann
 
Posts: n/a
PERFECT!!
This works for X-Arcade in Advanced Settings:

keyboard_key_kp2 = action_joy_1_down
keyboard_key_kp4 = action_joy_1_left
keyboard_key_kp4 keyboard_key_kp2 = action_joy_1_left_down
keyboard_key_kp4 keyboard_key_kp8 = action_joy_1_left_up
keyboard_key_kp6 = action_joy_1_right
keyboard_key_kp6 keyboard_key_kp2 = action_joy_1_right_down
keyboard_key_kp6 keyboard_key_kp8 = action_joy_1_right_up
keyboard_key_kp8 = action_joy_1_up
keyboard_key_lctrl = action_joy_1_fire_button

Thank you very much for your excellent work to bring us back our Amiga games and for your kindness now let's play!
 
Old 08 August 2014, 18:57   #8
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Quote:
Originally Posted by swann View Post
keyboard_key_kp4 keyboard_key_kp2 = action_joy_1_left_down
keyboard_key_kp4 keyboard_key_kp8 = action_joy_1_left_up
keyboard_key_kp6 keyboard_key_kp2 = action_joy_1_right_down
keyboard_key_kp6 keyboard_key_kp8 = action_joy_1_right_up
You can safely delete these lines, as they don't do anything (you cannot have multiple input event names left of =). Enjoy
FrodeSolheim is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian installer CD problems mark_k support.WinUAE 50 21 March 2013 12:19
Does Debian work on PPC boards? wXR Amiga scene 2 16 February 2013 02:35
Getting GameBase Amiga working nicely on an arcade cab... GameBase project.GameBase Amiga 6 23 November 2009 00:50
Guru when starting Debian 3.1 for Amiga The Rom Alien support.WinUAE 7 08 June 2005 17:11
Looking for Miggy emu to run under debian on A1 Severin New to Emulation or Amiga scene 17 14 July 2003 13:42

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:59.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07619 seconds with 13 queries