Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
scripting_function_keys [2021/11/30 07:17] – finish cleanup atari | scripting_function_keys [2022/07/10 07:48] (current) – [Create a custom mapping] atari | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Scripting Function Keys ====== | ====== Scripting Function Keys ====== | ||
- | Many input devices nowadays include dedicated function keys for particular (usually hardware-related) functions, such as volume adjustment, brightness adjustment, power off, etc. Batocera supports the scripting of these function keys to certain commands, and includes most common function keys for various platforms. But it is possible that your device in particular doesn' | + | Many input devices nowadays include dedicated function keys for particular (usually hardware-related) functions, such as volume adjustment, brightness adjustment, power off, etc. Batocera supports the scripting of any key to any command, and includes most common function keys for various platforms. But it is possible that your device in particular doesn' |
===== Create a custom mapping ===== | ===== Create a custom mapping ===== | ||
Line 22: | Line 22: | ||
BTN_TRIGGER_HAPPY3 1 batocera-brightness - 5 | BTN_TRIGGER_HAPPY3 1 batocera-brightness - 5 | ||
BTN_TRIGGER_HAPPY4 1 batocera-brightness + 5 | BTN_TRIGGER_HAPPY4 1 batocera-brightness + 5 | ||
+ | KEY_MUTE 1 batocera-audio setSystemVolume mute-toggle | ||
KEY_VOLUMEUP 1 batocera-audio setSystemVolume +5 | KEY_VOLUMEUP 1 batocera-audio setSystemVolume +5 | ||
KEY_VOLUMEDOWN 1 batocera-audio setSystemVolume -5 | KEY_VOLUMEDOWN 1 batocera-audio setSystemVolume -5 | ||
- | # power off, switch command to `/ | + | # power off, switch command to "/ |
KEY_POWER | KEY_POWER | ||
# display some information on X displays | # display some information on X displays | ||
Line 54: | Line 55: | ||
Look for the key name in parenthesis and its value when depressed after the " | Look for the key name in parenthesis and its value when depressed after the " | ||
+ | |||
+ | A list of most existing events can also be found in [[: | ||
===== What is the default mapping? ===== | ===== What is the default mapping? ===== |
- scripting_function_keys.1638253049.txt.gz
- Last modified: 2 years ago
- by atari