mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Fix camera updates being toggled by N key in release mode (#2762)
This commit is contained in:
@@ -256,7 +256,11 @@ KeyPress::KeyPress() :
|
||||
|
||||
KeyPress::KeyPress(const char *name)
|
||||
{
|
||||
if (strlen(name) > 4) {
|
||||
if (name[0] == 0) {
|
||||
Key = irr::KEY_KEY_CODES_COUNT;
|
||||
Char = L'\0';
|
||||
return;
|
||||
} else if (strlen(name) > 4) {
|
||||
try {
|
||||
Key = keyname_to_keycode(name);
|
||||
m_name = name;
|
||||
|
Reference in New Issue
Block a user