mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
x11: don't include numpad keys in get_keyboard_map()
This is a hack until we introduce separate ButtonHandles for numpad keys
This commit is contained in:
parent
f57cd186bb
commit
e2d6c4cb30
@ -2000,6 +2000,13 @@ get_keyboard_map() const {
|
||||
LightReMutexHolder holder(x11GraphicsPipe::_x_mutex);
|
||||
|
||||
for (int k = 9; k <= 135; ++k) {
|
||||
if (k >= 78 && k <= 91) {
|
||||
// Ignore numpad keys for now. These are not mapped to separate button
|
||||
// handles in Panda, so we don't want their mappings to conflict with
|
||||
// the regular numeric keys.
|
||||
continue;
|
||||
}
|
||||
|
||||
ButtonHandle raw_button = map_raw_button(k);
|
||||
if (raw_button == ButtonHandle::none()) {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user