# GLFW\_KEY\_REPEAT not working?

**URL:** <https://discourse.glfw.org/t/glfw-key-repeat-not-working/443>\
**Category:** support\
**Created:** [December 27, 2006, 12:44pm UTC](https://discourse.glfw.org/t/glfw-key-repeat-not-working/443 "2006-12-27T12:44:11Z")\
**Posts on this page:** 5\
**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:** [December 27, 2006, 12:44pm UTC](https://discourse.glfw.org/t/glfw-key-repeat-not-working/443/1 "2006-12-27T12:44:11Z")

</div>

**nobody** wrote on [Wednesday, December 27, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/5a69697d/#0044):

hi! great library!  
the user’s guide says: “By default, GLFW does not report key repeats when a key is held down.” however, this does not seem to be true… in my app, i want some key presses to be reported always (for camera movement etc), but some should only be reported when the key is pressed, not when it is held down (to toggle lights etc)… how can i do this? calling glfwEnable/glfwDisable with GLFW\_KEY\_REPEAT didn’t help. thanks in advance!

---

<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:** [December 28, 2006, 8:08am UTC](https://discourse.glfw.org/t/glfw-key-repeat-not-working/443/2 "2006-12-28T08:08:42Z")

</div>

**[marcus256](https://sourceforge.net/u/marcus256/)** wrote on [Thursday, December 28, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/5a69697d/#186a):

You should probably have a look at the glfwGetKey() function. It will report the state of any individual key at any given time.

---

<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:** [December 28, 2006, 4:13pm UTC](https://discourse.glfw.org/t/glfw-key-repeat-not-working/443/3 "2006-12-28T16:13:06Z")

</div>

**nobody** wrote on [Thursday, December 28, 2006](https://sourceforge.net/p/glfw/discussion/247562/thread/5a69697d/#4401):

that’s what i’m using 🙂

---

<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:** [November 11, 2007, 9:26pm UTC](https://discourse.glfw.org/t/glfw-key-repeat-not-working/443/4 "2007-11-11T21:26:13Z")

</div>

**[jasper\_horn](https://sourceforge.net/u/jasper_horn/)** wrote on [Sunday, November 11, 2007](https://sourceforge.net/p/glfw/discussion/247562/thread/5a69697d/#9dc8):

That’s the part where GLFW\_KEY\_REPEAT works for, it works for the glfwSetKeyCallBack-part, which is what you should use for such one-shot effects.

---

<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:** [November 11, 2007, 9:31pm UTC](https://discourse.glfw.org/t/glfw-key-repeat-not-working/443/5 "2007-11-11T21:31:04Z")

</div>

**[jasper\_horn](https://sourceforge.net/u/jasper_horn/)** wrote on [Sunday, November 11, 2007](https://sourceforge.net/p/glfw/discussion/247562/thread/5a69697d/#0044/61a3):

sorry, I did not see the thread was near-ancient, just saw the question was unanswered
