# NumLock state

**URL:** <https://discourse.libsdl.org/t/numlock-state/20738>\
**Category:** SDL Development\
**Created:** [June 10, 2014, 8:27am UTC](https://discourse.libsdl.org/t/numlock-state/20738 "2014-06-10T08:27:30Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Peter87](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/p/f07891/32.png) [@Peter87](https://discourse.libsdl.org/u/Peter87)\
**Post date:** [December 1, 2025, 11:44am UTC](https://discourse.libsdl.org/t/numlock-state/20738/15 "2025-12-01T11:44:44Z")

</div>

> [@rtrussell](#):
>
> I’m pleased that I’m not missing a simpler alternative, such as the `SDL_KP_UP` etc. you suggested. I presume SDL3 doesn’t have these either?

Not as far as I can see. I did however find a hint that seems to be able to remap the numpad keys automatically but I haven’t tried it. This seems to be exactly what you asked for originally.

> [SDL\_HINT\_KEYCODE\_OPTIONS](https://wiki.libsdl.org/SDL3/SDL_HINT_KEYCODE_OPTIONS)  
> “hide\_numpad”: The numpad keysyms will be translated into their non-numpad versions based on the current NumLock state. For example, SDLK\_KP\_4 would become SDLK\_4 if SDL\_KMOD\_NUM is set in the event modifiers, and SDLK\_LEFT if it is unset.

---

_[View the full topic](https://discourse.libsdl.org/t/numlock-state/20738)._
