#!/bin/sh

# apt-get install joystick

jstest --event /dev/input/js0 | while read LINE; do {
	case "$LINE" in
		*"number 0"*)
			echo "Nummer 0"
		;;
		*"number 15"*)
			echo "Nummer 15"
		;;
		*"number 10"*)
			echo "Nummer 10"
		;;
		*"number 5"*)
			echo "Nummer 5"
		;;
		*)
			echo "$LINE"
		;;
	esac
} done
