Not the buttons, but yo need to find the events belonging to your dial.
All available keys can be found here:
Look at /dev/input/ and check the events while you press every combination of the thingy.
like:
cat /dev/input/event0
cat /dev/input/event1
cat /dev/input/event2
cat /dev/input/eventx
And add these events belonging to your thingy to the script.