mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Add in-game key change menu
This commit is contained in:
parent
b98e8d6da8
commit
7b548cd2b5
2 changed files with 25 additions and 0 deletions
|
@ -31,6 +31,7 @@ class IGameCallback
|
|||
{
|
||||
public:
|
||||
virtual void exitToOS() = 0;
|
||||
virtual void keyConfig() = 0;
|
||||
virtual void disconnect() = 0;
|
||||
virtual void changePassword() = 0;
|
||||
virtual void changeVolume() = 0;
|
||||
|
@ -124,6 +125,7 @@ public:
|
|||
disconnect_requested(false),
|
||||
changepassword_requested(false),
|
||||
changevolume_requested(false),
|
||||
keyconfig_requested(false),
|
||||
shutdown_requested(false),
|
||||
device(a_device)
|
||||
{
|
||||
|
@ -151,10 +153,17 @@ public:
|
|||
{
|
||||
changevolume_requested = true;
|
||||
}
|
||||
|
||||
virtual void keyConfig()
|
||||
{
|
||||
keyconfig_requested = true;
|
||||
}
|
||||
|
||||
|
||||
bool disconnect_requested;
|
||||
bool changepassword_requested;
|
||||
bool changevolume_requested;
|
||||
bool keyconfig_requested;
|
||||
bool shutdown_requested;
|
||||
IrrlichtDevice *device;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue