# How to properly use a gamepad (joystick)?

**URL:** <https://discourse.glfw.org/t/how-to-properly-use-a-gamepad-joystick/560>\
**Category:** support\
**Created:** [July 7, 2015, 3:22pm UTC](https://discourse.glfw.org/t/how-to-properly-use-a-gamepad-joystick/560 "2015-07-07T15:22:26Z")\
**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:** [July 7, 2015, 3:22pm UTC](https://discourse.glfw.org/t/how-to-properly-use-a-gamepad-joystick/560/1 "2015-07-07T15:22:26Z")

</div>

**[begre1929](https://sourceforge.net/u/begre1929/)** wrote on [Tuesday, July 07, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/096646ab/#632d):

hi,  
for keyboard/mouse there is some callback functions. For joystick I don’t see such thing.

Does that mean, in the case I want to check the axis, I have to read the array returned by glfwGetJoystickAxes every frame ?

---

<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:** [July 7, 2015, 4:13pm UTC](https://discourse.glfw.org/t/how-to-properly-use-a-gamepad-joystick/560/2 "2015-07-07T16:13:01Z")

</div>

**[elmindreda](https://sourceforge.net/u/elmindreda/)** wrote on [Tuesday, July 07, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/096646ab/#fef6):

Yes.

---

<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:** [July 7, 2015, 4:45pm UTC](https://discourse.glfw.org/t/how-to-properly-use-a-gamepad-joystick/560/3 "2015-07-07T16:45:55Z")

</div>

**[begre1929](https://sourceforge.net/u/begre1929/)** wrote on [Tuesday, July 07, 2015](https://sourceforge.net/p/glfw/discussion/247562/thread/096646ab/#9f52):

all right then… thank you Camilla.
