All keyboard and joystick events can be mapped to any Amiga keyboard and joystick action, overriding default settings and (and the setup resulting from using the joystick_port_n options). A few examples of what you can do:
To map an action, you add a line like this to your configuration file:
devicename_eventname = actionname
Here is a specific example, mapping the keyboard key q to the fire button on the primary Amiga joystick (joy_1 is the joystick in joystick port 1):
keyboard_key_q = action_joy_1_fire_button
Examples of input actions are:
action_joy_1_fire_button (fire button on joystick in port 1)
action_key_z (press amiga keyboard key Z)
action_drive_0_insert_floppy_0 (insert disk from floppy image list)
I have put the list of available actions on its own page due to the large number of actions.
Here are the different types of event names you can use. joystick_0 is the first joystick connected, joystick_1 is the second, etc. Similarly, you can use button_0 (first button), button_1 (second button) and so on:
For most game pads with a proper universal configuration, you can use universal event names instead and make the configuration work identically even with different types of game pads connected. The above configuration is not suited for this, because button numbers have generally no relation to the physical placement of the game pad buttons.
With universal event names, you can map these events instead:
To match a specific joystick device, you can either (as in the above examples) match joystick by number:
joystick_0
joystick_1
joystick_2
etc...
Or you can match devices by name:
logitech_dual_action_usb
The device name is the name of the device as it appears in your operating system, converted to lower case and all characters other than letters and numbers converted to underscores. Adjacent underscores are merged into one, and trailing underscores are stripped.
For instance, a device named:
Controller (Xbox 360 Wireless Receiver)
will be matched by:
controller_xbox_360_wireless_receiver
If you have more than game pad of the same model connected, you can match the other ones with:
logitech_dual_action_usb_2 (the second connected of this model)
logitech_dual_action_usb_3 (the third connected of this model)
etc...
If you want to play Pinball Dreams with the first connected game pad, instead of using keyboard controls, you might want to map something like this:
joystick_0_left_shoulder = action_key_shift_left
joystick_0_right_shoulder = action_key_shift_right
joystick_0_north_button = action_key_f1
joystick_0_dpad_down = action_key_cursor_down
Along with a few more actions, such as mappings for amiga keys F2, F3, F4 and Space.
See keyboard mapping.
Hey Frode! I have a Keyrah which uses the Space key for the fire button on the main joystick so I’ve added
keyboard_key_space = action_joy_1_fire_button
to the config but that doesn’t change the space to be the fire button. I’ve tried action_joy_0_fire_button also and even tried remapping joystick 4 with the custom set but nothing works. I’ve also tried
joystick_port_1_primary = action_key_space.
What am I doing wrong here?
WTH! I just tried it again with keyboard_key_space = action_joy_1_fire_button and it works perfectly! I spent all last night banging my head against the desk. I was tired.. I bet I misspelled something or something else stupid like that. So nevermind my question… I got it figured out. As always, thank so much for making FS-UAE.. it rocks!
Arg… now my spacebar doesn’t work. 🙁 Let me see if there is any way to remap on the Keyrah side.
how can i map left or right mouse buttons to a specific key?
This is not possible in FS-UAE yet. Maybe something to put on the to-do list for 4.0…
Github issue registered: https://github.com/FrodeSolheim/fs-uae/issues/66
Hello,
Is it possible to bind a mouse button to a button on my controller? For some reason when loading games I find I have to click my left mouse button to get it past the loading screen. If I could use a button on my control pad it would be so much easier. Thanks!
Please disregard my question, I achieved it by adding “XInput_Controller_Button_5 = action_joy_0_2nd_button” in the advanced settings. Everything is working perfectly now, thank you.
Question: on Mac OS magic mouse it’s not possible to click both buttons at the same time.
Is there a way to map the right one to keyboard, so in case I can click them both somehow (it’s used in Cannon Fodder and other games).
Thanks
Sorry for writing in both articles, but I keep jumping here and there.
Since CTRL and ALT are not reliable I’ve decided to use the two keys on the left of my right SHIFT button. they are “.” and “-“.
While keyboard_key_period perfectly works, I’m not able to find the one for the other key. It should be keyboard_key_minus but doesn’t work (even the “-” on the numeric pad works”). What action should I use?
Thanks (again).
Aarghhh, it was keyboard_key_slash !
Sorry sorry sorry… problem solved. 🙂
hi, I would like to set the joystick with no host device in place of the mouse by default so as to be able to use the keyboard mapping. I have also noticed that in the player 1, if I set the second button the lalt key does not work
Hi, I’m not sure if I understand what you mean, can you elaborate?
Hello! I would like to map Windows key to open the menu. But I can not find out how
keyboard_key_[what-to-write-here] = action_menu
Thanks!
keyboard_key_lsuper = action_menu
🙂It works! Thanks!
Great 🙂 Did you get the reply by e-mail as well btw? I’m trying to figure out if messages get through or are stopped somewhere (spam filter or otherwise, it does not look like everyone gets replies by e-mails).
Hello 🙂
is it possible to do key mapping in a dedicated game settings file?
I need to change various keys but for Ishar only.
thanks
Hi, this is possible to do if you create a local configuration for your game, but not possible for entries from the online database at the moment :-/