forked from luanti-org/luanti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement keychange/touchscreenlayout, don't implement filepicker
- Loading branch information
Showing
6 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Luanti | ||
// SPDX-License-Identifier: LGPL-2.1-or-later | ||
// Copyright (C) 2025 grorp | ||
|
||
#include "l_pause_menu.h" | ||
#include "gui/mainmenumanager.h" | ||
#include "lua_api/l_internal.h" | ||
|
||
/******************************************************************************/ | ||
int ModApiPauseMenu::l_show_keys_menu(lua_State *L) | ||
{ | ||
g_gamecallback->keyConfig(); | ||
return 0; | ||
} | ||
|
||
/******************************************************************************/ | ||
int ModApiPauseMenu::l_show_touchscreen_layout(lua_State *L) | ||
{ | ||
g_gamecallback->touchscreenLayout(); | ||
return 0; | ||
} | ||
|
||
/******************************************************************************/ | ||
void ModApiPauseMenu::Initialize(lua_State *L, int top) | ||
{ | ||
API_FCT(show_keys_menu); | ||
API_FCT(show_touchscreen_layout); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Luanti | ||
// SPDX-License-Identifier: LGPL-2.1-or-later | ||
// Copyright (C) 2025 grorp | ||
|
||
#pragma once | ||
|
||
#include "l_base.h" | ||
|
||
class ModApiPauseMenu: public ModApiBase | ||
{ | ||
private: | ||
static int l_show_keys_menu(lua_State *L); | ||
static int l_show_touchscreen_layout(lua_State *L); | ||
|
||
public: | ||
static void Initialize(lua_State *L, int top); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters