# Joystick under ubuntu 10.04

**URL:** <https://discourse.glfw.org/t/joystick-under-ubuntu-10-04/303>\
**Category:** support\
**Created:** [August 27, 2010, 2:07pm UTC](https://discourse.glfw.org/t/joystick-under-ubuntu-10-04/303 "2010-08-27T14:07:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 27, 2010, 2:07pm UTC](https://discourse.glfw.org/t/joystick-under-ubuntu-10-04/303/1 "2010-08-27T14:07:34Z")

</div>

**[cameronking](https://sourceforge.net/u/cameronking/)** wrote on [Friday, August 27, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/59dd7ef8/#0778):

Hello,

My system is Macbook Pro with Ubuntu 10.04.

I noticed that when I try to look up a connected joypad, I get nothing, Its a  
standard non-flashy 10-button Logitech Precision joypad.

Using the jstest utility I found that I could access my joypad on the console:

jstest -normal /dev/input/js1

(There is a js0 and a js1 in the /dev/input but js1 accesses it.)

I get full information from the system about the USB joypad.

In GLFW I attempt to ascertain the axes, but it returns 0.

int axes = glfwGetJoystickParam(GLFW\_JOYSTICK\_1, GLFW\_AXES);

I also tried GLFW\_JOYSTICK\_2 and 3. Are joysticks in Linux still ropey?

Cheers,

Cameron

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 27, 2010, 3:35pm UTC](https://discourse.glfw.org/t/joystick-under-ubuntu-10-04/303/2 "2010-08-27T15:35:06Z")

</div>

**[dalfy](https://sourceforge.net/u/dalfy/)** wrote on [Friday, August 27, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/59dd7ef8/#55f6):

Have you tried any of the tests and examples that uses joystick I think there  
is one if not two.

Please try them and tell us what the results are.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [August 27, 2010, 3:59pm UTC](https://discourse.glfw.org/t/joystick-under-ubuntu-10-04/303/3 "2010-08-27T15:59:21Z")

</div>

**[cameronking](https://sourceforge.net/u/cameronking/)** wrote on [Friday, August 27, 2010](https://sourceforge.net/p/glfw/discussion/247562/thread/59dd7ef8/#147e):

Checked out the Tests (I was looking under examples :-/ ) , yes all looks  
good.

I’ll go see what I did wrong.

Thanks.
