$ xinput --get-button-map 12
device has no buttons
[takahab@rocky92 ~]$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ 2.4G Mouse Consumer Control id=9 [slave pointer (2)]
⎜ ↳ ELECOM IST TrackBall Mouse id=11 [slave pointer (2)]
⎜ ↳ 2.4G Mouse id=14 [slave pointer (2)]
⎜ ↳ ELECOM IST TrackBall Consumer Control id=15 [slave pointer (2)]
⎜ ↳ Getech HUGE TrackBall id=18 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ 2.4G Mouse Consumer Control id=10 [slave keyboard (3)]
↳ ELECOM IST TrackBall System Control id=12 [slave keyboard (3)]
↳ 2.4G Mouse id=13 [slave keyboard (3)]
↳ ELECOM IST TrackBall Consumer Control id=16 [slave keyboard (3)]
↳ 2.4G Mouse System Control id=17 [slave keyboard (3)]
↳ Getech HUGE TrackBall id=19 [slave keyboard (3)]
[takahab@rocky92 ~]$ xinput --get-button-map 11
1 2 3 4 5 6 7 8 9
[takahab@rocky92 ~]$ xinput query-state 11
2 classes :
ButtonClass
button[1]=up
button[2]=up
button[3]=up
button[4]=up
button[5]=up
button[6]=up
button[7]=up
button[8]=up
button[9]=up
ValuatorClass Mode=Relative Proximity=In
valuator[0]=4918
valuator[1]=2589
valuator[2]=0
valuator[3]=-15
[takahab@rocky92 ~]$