Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
batocera [2023/10/27 21:45] – angelegt geraldbatocera [2024/02/29 13:36] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 4: Zeile 4:
  
 Batocera root user password is linux Batocera root user password is linux
 +
 +
 +
 +===== Eigene Knöpfe für Sound oder andere Aktionen =====
 +
 +
 +Quelle((https://wiki.batocera.org/scripting_function_keys))
 +
 +
 +<code>
 +cp /etc/triggerhappy/triggers.d/multimedia_key.conf /userdata/system/configs/
 +</code>
 +
 +
 +==== Identifying key names ====
 +
 +
 +Open a terminal and type the following command:
 +
 +<code>evtest</code>
 +
 +Then select your intended controller and press the button on your controller. The detected input will then be displayed like so:
 +
 +<code>Event: time 1614795871.549381, type 1 (EV_KEY), code 99 (KEY_SYSRQ), value 0</code>
 +
 +Look for the key name in parenthesis and its value when depressed after the “code” number. In this example, the key name would be KEY_SYSRQ and its value would be 0. 
 +<code>
 +cat multimedia_keys.conf 
 +KEY_VOLUMEUP 1                  batocera-audio setSystemVolume +5
 +KEY_VOLUMEUP 2                  batocera-audio setSystemVolume +5
 +KEY_VOLUMEDOWN 1                batocera-audio setSystemVolume -5
 +KEY_VOLUMEDOWN 2                batocera-audio setSystemVolume -5
 +KEY_MUTE        1               batocera-audio setSystemVolume mute-toggle
 +KEY_POWER                     batocera-shutdown 1
 +KEY_POWER                     batocera-shutdown 0
 +# display some information on X displays
 +KEY_F2          1               /usr/bin/batocera-info --short | LANG=en_US HOME=/userdata/system XAUTHORITY=/var/lib/.Xauthority DISPLAY=:0.0 osd_cat -f -*-*-bold-*-*-*-38-120-*-*-*-*-*-* -cred -s 3 -d 4
 +KEY_F10+KEY_LEFTCTRL+KEY_LEFTALT 1 /etc/init.d/S31emulationstation stop
 +KEY_F11+KEY_LEFTCTRL+KEY_LEFTALT 1 chvt 1
 +KEY_LEFTMETA    1               batocera-brightness cycle
 +KEY_SYSRQ                     batocera-screenshot
 +BTN_PINKIE 1 batocera-audio setSystemVolume -5
 +BTN_TOP2 1 batocera-audio setSystemVolume +5
 +</code>
 +
 +===== Hardware =====
 +
 +
 +==== Joystick ====
 +
 +
 +=== Anlog Joystick on this cheap USB-encoder ===
 +
 +
 +Quelle((https://www.instructables.com/Zero-Delay-USB-Encoder-True-Analog-Joystick-Modifi/))
 +
 +
 +
 +When I discovered these cheap CY-822A / USB Joystick X1 - Game Control Board USB Joystick Encoders on Ebay and Amazon I was puzzled by their description and construction.
 +
 +A lot of people like to make their own input devices and controllers and these are a cheap way to get started - but just switches are not always what you want.
 +
 +Despite the Analogue description its a very Digital device.
 +
 +{{::joystick-usb-analog.jpg?600|}}
 +
 +
 +Bessere Möglichkeit mit dem gleichen CY-822A: Brücken, damit das Ding direkt in den Analogmodus bootet:
 +
 +[[https://beko.famkos.net/2022/03/17/cy-822a-with-analogue-input/]]
 +
 +
 +
 +
 +
  
  
 
Nach oben
batocera.1698443131.txt.gz · Zuletzt geändert: 2024/02/29 13:35 (Externe Bearbeitung)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp