#!/bin/sh

killall joy2key
# BASH Emacs mode shortcut key mapping (https://ss64.com/bash/syntax-keyboard.html)
# 0x2 = Left = CTRL-
# 0x6 = Right
# 0x10 = Up
# 0xe = Down
# 0xd = Enter
# 0x9 = Tab
# 0xc = CLS
# 0x3 = CTRL-C
joy2key 0 -rawconsole -axis 0x2 0x6 0x10 0xe -buttons 0xd 0x9 0xc -dev /dev/input/js0 -thresh -1 1 -1 1 -1 1 -1 1 -1 1 &

