English Amiga Board


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

 
 
Thread Tools
Old 24 June 2023, 14:05   #1
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,665
Amiga and Alt keys are flipped on PC. Config fix?

See picture.



Can I put this in a config that will run every time FS-UAE is launched?

I'm using the launcher.

Where should I look, and what should I type?

Last edited by Photon; 24 June 2023 at 14:12.
Photon is offline  
Old 24 June 2023, 14:43   #2
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,665
Created folder FS-UAE/Configurations in My Documents and put a file Default.fs-uae in it with the following contents:

Code:
action_key_alt_left = AMIGA_LEFT
action_key_amiga_left = ALT_LEFT
action_key_alt_right = AMIGA_RIGHT
action_key_amiga_right = ALT_RIGHT
But it didn't change anything.
Photon is offline  
Old 24 June 2023, 16:43   #3
wiisoldier
Just loving the Amiga
 
wiisoldier's Avatar
 
Join Date: Jul 2022
Location: Carmarthen / Wales
Posts: 55
I've never tried this but I think the solution is the other way around. I.E.:

action_key_alt_left = AMIGA_LEFT

Would be:

keyboard_key_alt_left = action_key_amiga_left

You can find more info here:

https://fs-uae.net/docs/keyboard
wiisoldier is offline  
Old 24 June 2023, 19:30   #4
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,665
You're right. The problem is probably that I've never used FS-UAE until recently. I'm also using a portable version of FS-UAE, which might be different from the documentation?

At least my Default.fs-uae now looks like this:

Code:
[config]
amiga_model = A500
floppy_drive_0 = Disk1.adf
keyboard_key_amiga_left = action_key_alt_left
keyboard_key_alt_left = action_key_amiga_left
keyboard_key_amiga_right = action_key_alt_right
keyboard_key_alt_right = action_key_amiga_right
And I've also copied it as Config.fs-uae to the folders of the FS-UAE and FS-UAE launcher executable as the documentation stated.

Still nothing.

The launcher is supposed to list available configs, but it's empty. So IDK which folder it looks, because the UI doesn't tell me above the config directory.
Photon is offline  
Old 24 June 2023, 19:58   #5
malko
Ex nihilo nihil
 
malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 5,058
Long time I didn't toy around with FS-UEA keyboard mapping but did you try something in the like of :

keyboard_key_lalt = action_key_amiga_left
keyboard_key_ralt = action_key_amiga_right
keyboard_key_lsuper = action_key_alt_left
keyboard_key_rsuper = action_key_alt_right

?
malko is offline  
Old 24 June 2023, 23:59   #6
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,665
I think I've done things according to the excellent documentation, but for some reason FS-UAE is not finding the file, or finding it but not applying the settings within.

I also read that the Alt key is handled specially, for Alt-Tab, and it might be better to do this by binding Left/Right Ctrl to Alt instead (if that helps). Both the Alt and Windows keys seem to be troublesome. Maybe FS-UAE is not tested enough in this regard on Windows because of WinUAE (which may have the same trouble AFAIK).
Photon is offline  
Old 25 June 2023, 00:09   #7
wiisoldier
Just loving the Amiga
 
wiisoldier's Avatar
 
Join Date: Jul 2022
Location: Carmarthen / Wales
Posts: 55
It may be that your configuration file (Default.fs-uae) is in the wrong place. In linux it goes in:
"username"/Documents/FS-UAE/Configurations/Default.fs-uae

However in windows it may be in a different location. See the relevant documentation here:

https://fs-uae.net/configuration-files

and here:

https://fs-uae.net/docs/directories

Without reading it all I am guessing that the configuration folder may need to be located in the same path as the executable program.
wiisoldier is offline  
Old 25 June 2023, 00:27   #8
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,665
Unfortunately, those docs are not specific enough. The config file is referred to as "the config file", and "base-dir" is not given a name.

A path to a file is only complete if it includes the file name and the folder name that contains it.

I've sprayed my config file as Default.fs-uae and Config.fs-uae in all relevant folders for my platform, and still nothing.

I'm looking for a document text that says: in Windows, create a file with these contents, name it thus, and put in this exact directory. That would be
Photon is offline  
Old 25 June 2023, 01:36   #9
wiisoldier
Just loving the Amiga
 
wiisoldier's Avatar
 
Join Date: Jul 2022
Location: Carmarthen / Wales
Posts: 55
As I said, I don't use FS-UAE in windows. However I did once install it on one windows PC to run some tests. I checked the hard-drive I used and I found that the main configuration folder was in:
C:\Users"myusername"\FS-UAE

or:

C:\Users"myusername"\FS-UAE\Configurations

Maybe try putting it in there.

Hope this helps.
wiisoldier is offline  
Old 25 June 2023, 01:46   #10
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,665
No such FS-UAE folder under username in Windows. It is extremely unusual to the point of unheard of to store config files there for any application.

Nevertheless, I created both folders you mentioned, and put 2x *.fs-uae files with the contents of my last post there, and it has no effect. You tested that your settings had an effect in FS-UAE?
Photon is offline  
Old 25 June 2023, 02:23   #11
wiisoldier
Just loving the Amiga
 
wiisoldier's Avatar
 
Join Date: Jul 2022
Location: Carmarthen / Wales
Posts: 55
Quote:
Originally Posted by Photon View Post
You tested that your settings had an effect in FS-UAE?

No, sorry I didn't. This was an old test drive that I used ages back on a windows 7 system. Here's an image of my system set-up:




https://eab.abime.net/attachment.php...1&d=1687652533
Attached Thumbnails
Click image for larger version

Name:	Folders2.jpg
Views:	40
Size:	88.2 KB
ID:	79486  
wiisoldier is offline  
Old 25 June 2023, 05:40   #12
giantclam
Registered User
 
giantclam's Avatar
 
Join Date: Jan 2015
Location: australia
Posts: 534
...just some FWIW comments...

Quote:
In linux it goes in: "username"/Documents/FS-UAE/Configurations/Default.fs-uae
Actually, this is a packaging convention ~ if you compile/install fs-uae from source, and the directory 'Documents' does not exist in the user's $HOMEDIR, the created path is "username"/FS-UAE/Configurations/Default.fs-uae ... 8)

@Photon

I think there's some unresolved contention in the code wrt these key mappings.

Out of curiosity I had a look at how amiberry was handling LSUPER/RSUPER (l/r windows keys) ~ interestingly, these keypresses map to LGUI/RGUI in linux with amiberry, and even more interesting is the fact that the amiberry config GUI will show me these keypresses, but doesn't accept/consider either key as a valid hotkey modifier...(I can ask midwan about that behavior)...

...in fs-uae/src/fsuae/fsuae-keyboard.c you can see a couple of (pending?) fix-me comments;

Code:
    /* FIXME */
    { FSEMU_KEYBOARD_LGUI, ALL, ACTION_KEY_LAMIGA },
#if 0
    { FS_ML_KEY_LMETA,        ALL, INPUTEVENT_KEY_AMIGA_LEFT },
#endif
    { FSEMU_KEYBOARD_LALT, ALL, ACTION_KEY_LALT },
    { FSEMU_KEYBOARD_RALT, ALL, ACTION_KEY_LALT },
    /* FIXME */
    { FSEMU_KEYBOARD_RGUI, ALL, ACTION_KEY_RAMIGA },
#if 0
    { FS_ML_KEY_RMETA,        ALL, INPUTEVENT_KEY_AMIGA_RIGHT },
#endif
    { FSEMU_KEYBOARD_MENU, ALL, ACTION_KEY_RAMIGA },
#if 0
    { FSEMU_KEYBOARD_RCTRL,        ALL, INPUTEVENT_KEY_CTRL_RIGHT },
#endif
I'd be reasonably sure if I manually edited amiberry.conf to use LGUI/RGUI as hotkeys, such will be silently ignored (in much the same way the config GUI does =)

Possibly you'd have to ask FS about this, but I get a gut feeling this is expected behavior currently.
giantclam 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
Take control of Alt + TAB, Ctrl + Alt + Del and Ctrl + ESC. Ponki1986 support.WinUAE 6 13 December 2020 07:54
gfx_top_windowed / gfx_left_windowed bug and flipped? StoneOakvalley support.WinUAE 1 05 October 2018 19:33
Assigning keys manually in WinUAE config files dekarAF support.WinUAE 27 10 March 2010 17:53
Indivision AGA 1200 + Elbox PC-Key fix! Fingerlickin_B Hardware mods 10 24 September 2008 00:59
Bug??: Sound Left/Right flipped for A1200 and setting is not saveable rsn8887 support.WinUAE 3 03 November 2006 17:40

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 18:54.

Top

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