Hi there - I have an odd and quite specific problem with the joystick which I can't find covered elsewhere.
I have a newly-updated PIXEL Raspbian install and the SenseHAT (version 1.0) display works perfectly with Python code on a Raspberry Pi 2 (Model B v1). The joystick works perfectly with Pygame examples such as the one here: https://www.raspberrypi.org/learning/as ... oystick.md
However, I would like to use the joystick in a headless application so I have installed evdev and am trying to use the example listed on the cheatsheet at https://www.raspberrypi.org/learning/as ... tsheet.pdf
I can't get it to work. It prints UP / DOWN / LEFT / RIGHT / ENTER when I press those keys on the _keyboard_ but not on the SenseHAT joystick. The SenseHAT joystick DOES however move the cursor up/down/left/right in the console window, so it is doing something. I have triple-checked the code for typos and am reasonably confident I have typed it correctly.
Any ideas?! Grateful for any help.
PS I have now tried the evdev example here: https://github.com/RPi-Distro/python-sense-hat/issues/9
and it works! - so I am even more confused... is there a typo in the cheatsheet? I copied and pasted and put all the spaces and indents back carefully. Is the cheatsheet example not compatible with my setup?