mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
fix: disable on-screen button binds in Keyboard PC mode
This commit is contained in:
parent
a865cea026
commit
9162e97cac
|
|
@ -211,23 +211,30 @@ void UIScene_Keyboard::handleInput(int iPad, int key, bool repeat, bool pressed,
|
||||||
|
|
||||||
if(repeat || pressed)
|
if(repeat || pressed)
|
||||||
{
|
{
|
||||||
switch(key)
|
if (key == ACTION_MENU_CANCEL)
|
||||||
{
|
{
|
||||||
case ACTION_MENU_CANCEL:
|
|
||||||
#ifdef _WINDOWS64
|
#ifdef _WINDOWS64
|
||||||
{
|
// Cache before navigateBack() destroys this scene
|
||||||
// Cache before navigateBack() destroys this scene
|
int(*cb)(LPVOID, const bool) = m_win64Callback;
|
||||||
int(*cb)(LPVOID, const bool) = m_win64Callback;
|
LPVOID cbParam = m_win64CallbackParam;
|
||||||
LPVOID cbParam = m_win64CallbackParam;
|
navigateBack();
|
||||||
navigateBack();
|
if (cb)
|
||||||
if (cb)
|
cb(cbParam, false);
|
||||||
cb(cbParam, false);
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
navigateBack();
|
navigateBack();
|
||||||
#endif
|
#endif
|
||||||
handled = true;
|
handled = true;
|
||||||
break;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Don't handle on-screen buttons
|
||||||
|
if (m_bPCMode)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch(key)
|
||||||
|
{
|
||||||
case ACTION_MENU_X: // X
|
case ACTION_MENU_X: // X
|
||||||
out = IggyPlayerCallMethodRS ( getMovie() , &result, IggyPlayerRootPath( getMovie() ), m_funcBackspaceButtonPressed, 0 , NULL );
|
out = IggyPlayerCallMethodRS ( getMovie() , &result, IggyPlayerRootPath( getMovie() ), m_funcBackspaceButtonPressed, 0 , NULL );
|
||||||
handled = true;
|
handled = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue