xinput

https://gato.intaa.net/archives/15797

elecom トラックボールのボタン設定の方法

#elecomのトラックボールはid=12として認識するはず
#マップを取得
xinput --get-button-map 12
#状態を取得
xinput query-state 12
#bottun
xinput set-button-map 12 1 2 3 4 5 6 7 8 9 1 11 12 13 14 15 16