mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 21:37:27 +00:00
Fixed keypad 5 release events.
This commit is contained in:
parent
735bc2d815
commit
951f02acf3
@ -229,6 +229,7 @@ See the [GLFW documentation](http://www.glfw.org/docs/latest/).
|
|||||||
the window frame on some WMs
|
the window frame on some WMs
|
||||||
- [X11] Bugfix: The original video mode of a monitor was overwritten by calls
|
- [X11] Bugfix: The original video mode of a monitor was overwritten by calls
|
||||||
to `glfwSetWindowSize`
|
to `glfwSetWindowSize`
|
||||||
|
- [X11] Bugfix: Key release events for `GLFW_KEY_KP_5` were discarded.
|
||||||
|
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
@ -264,6 +265,7 @@ skills.
|
|||||||
- John Bartholomew
|
- John Bartholomew
|
||||||
- Niklas Behrens
|
- Niklas Behrens
|
||||||
- Niklas Bergström
|
- Niklas Bergström
|
||||||
|
- Doug Binks
|
||||||
- blanco
|
- blanco
|
||||||
- Lambert Clara
|
- Lambert Clara
|
||||||
- Noel Cower
|
- Noel Cower
|
||||||
|
@ -48,7 +48,7 @@ static int translateKey(int keyCode)
|
|||||||
// Note: This way we always force "NumLock = ON", which is intentional
|
// Note: This way we always force "NumLock = ON", which is intentional
|
||||||
// since the returned key code should correspond to a physical
|
// since the returned key code should correspond to a physical
|
||||||
// location.
|
// location.
|
||||||
keySym = XkbKeycodeToKeysym(_glfw.x11.display, keyCode, 1, 0);
|
keySym = XkbKeycodeToKeysym(_glfw.x11.display, keyCode, 0, 1);
|
||||||
switch (keySym)
|
switch (keySym)
|
||||||
{
|
{
|
||||||
case XK_KP_0: return GLFW_KEY_KP_0;
|
case XK_KP_0: return GLFW_KEY_KP_0;
|
||||||
|
Loading…
Reference in New Issue
Block a user