# SenseHat Joystick

**URL:** <https://forums.pimoroni.com/t/sensehat-joystick/1163>\
**Category:** Support\
**Created:** [October 31, 2015, 12:06pm UTC](https://forums.pimoroni.com/t/sensehat-joystick/1163 "2015-10-31T12:06:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![miltonio](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/miltonio/32/507_2.png) [@miltonio](https://forums.pimoroni.com/u/miltonio)\
**Post date:** [October 31, 2015, 12:06pm UTC](https://forums.pimoroni.com/t/sensehat-joystick/1163/1 "2015-10-31T12:06:14Z")

</div>

Hey guys, I bought i senseHat of you guys earlier this week and it arrived fine and all.  
However I started playing with it and the example code and all that. I got to the joystick part of it all lastnight and I couldn’t get it to work. At first I thought i was doing something wrong, however today i tried the following example [https://github.com/raspberrypilearning/astro-pi-guide/blob/master/inputs-outputs/joystick.md](https://github.com/raspberrypilearning/astro-pi-guide/blob/master/inputs-outputs/joystick.md) but still it doesn’t work. I checked the code and everything it’s all the same, it works when I use the arrow keys fine but not when I use the joystick.  
am I missing something or is the joystick not working?

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 31, 2015, 1:06pm UTC](https://forums.pimoroni.com/t/sensehat-joystick/1163/2 "2015-10-31T13:06:02Z")

</div>

Are you using your Pi and SenseHAT via VNC?

You might need to look into the direct joystick driver here: [https://github.com/RPi-Distro/python-sense-hat/blob/master/sense\_hat/stick.py](https://github.com/RPi-Distro/python-sense-hat/blob/master/sense_hat/stick.py)

---

<div class="post-metadata">

**Author:** ![miltonio](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/miltonio/32/507_2.png) [@miltonio](https://forums.pimoroni.com/u/miltonio)\
**Post date:** [October 31, 2015, 2:31pm UTC](https://forums.pimoroni.com/t/sensehat-joystick/1163/3 "2015-10-31T14:31:51Z")

</div>

Yeah I was.  
I didn’t realized doing it through VNC would break it.  
Thanks for the pointer :)

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [October 31, 2015, 11:03pm UTC](https://forums.pimoroni.com/t/sensehat-joystick/1163/4 "2015-10-31T23:03:14Z")

</div>

I only knew what the problem was because I’d helped someone else figure it out a week or so ago. I don’t understand exactly _why_ VNC breaks it, but I suspect you can solve that by using X11VNC after the regular X desktop has launched.

---

<div class="post-metadata">

**Author:** ![miltonio](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/miltonio/32/507_2.png) [@miltonio](https://forums.pimoroni.com/u/miltonio)\
**Post date:** [November 1, 2015, 4:59pm UTC](https://forums.pimoroni.com/t/sensehat-joystick/1163/5 "2015-11-01T16:59:53Z")

</div>

oh cool, I’ll check it out. Thanks for the new pointer
