A different sort of pendant

For a Raspberry Pi, looks like a gamepad can be used for this using:

http://qjoypad.sourceforge.net/

install command is:

sudo apt-get install qjoypad

and it shows up under accessories and when run shows up among the icons in the top right corner.

Click on the Joystick2 button to access the available buttons.