mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-21 11:55:43 +02:00
Move KeyList & InputHandler from game.h to client/inputhandler.h (#5752)
* Move KeyList & InputHandler from game.h to client/inputhandler.h We have a header for inputs, move inputhandler class & related keylist object to it Also introduce a cpp file for MyEventReceiver::OnEvent function in inputhandler.h because a so huge function doesn't needs to be inlined * Pass clang-format on inputhandler.{cpp,h} (compatible)
This commit is contained in:
@@ -83,7 +83,7 @@ public:
|
||||
/*core::list<GUIModalMenu*>::Iterator i = m_stack.getLast();
|
||||
assert(*i == menu);
|
||||
m_stack.erase(i);*/
|
||||
|
||||
|
||||
if(!m_stack.empty())
|
||||
m_stack.back()->setVisible(true);
|
||||
}
|
||||
@@ -119,7 +119,7 @@ public:
|
||||
|
||||
extern MainMenuManager g_menumgr;
|
||||
|
||||
extern bool noMenuActive();
|
||||
extern bool isMenuActive();
|
||||
|
||||
class MainGameCallback : public IGameCallback
|
||||
{
|
||||
@@ -168,7 +168,7 @@ public:
|
||||
keyconfig_changed = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool disconnect_requested;
|
||||
bool changepassword_requested;
|
||||
bool changevolume_requested;
|
||||
|
Reference in New Issue
Block a user