add kbm support

This commit is contained in:
2026-08-13 09:11:13 +03:00
parent fb2e8eefd9
commit 7c7386099a
62 changed files with 1036 additions and 134 deletions
@@ -14,7 +14,7 @@ UIComponent_Tooltips::UIComponent_Tooltips(int iPad, void *initData, UILayer *pa
// Setup all the Iggy references we need for this scene
initialiseMovie();
#ifdef __PSVITA__
#if defined(__PSVITA__) || defined(_WINDOWS64)
// initialise vita touch controls with ids
for(unsigned int i = 0; i < ETouchInput_Count; ++i)
{
@@ -353,13 +353,13 @@ void UIComponent_Tooltips::_Relayout()
IggyDataValue result;
IggyResult out = IggyPlayerCallMethodRS ( getMovie() , &result, IggyPlayerRootPath( getMovie() ), m_funcUpdateLayout, 0 , NULL );
#ifdef __PSVITA__
#if defined(__PSVITA__) || defined(_WINDOWS64)
// rebuild touchboxes
ui.TouchBoxRebuild(this);
#endif
}
#ifdef __PSVITA__
#if defined(__PSVITA__)
void UIComponent_Tooltips::handleTouchInput(unsigned int iPad, S32 x, S32 y, int iId, bool bPressed, bool bRepeat, bool bReleased)
{
//app.DebugPrintf("ToolTip Touch ID = %i\n", iId);
@@ -427,6 +427,69 @@ void UIComponent_Tooltips::handleTouchInput(unsigned int iPad, S32 x, S32 y, int
}
}
}
#elif defined(_WINDOWS64)
void UIComponent_Tooltips::handleTouchInput(unsigned int iPad, S32 x, S32 y, int iId, bool bPressed, bool bRepeat, bool bReleased)
{
app.DebugPrintf("MY NAME IS CLEVELEND BROWN\n");
//app.DebugPrintf("ToolTip Touch ID = %i\n", iId);
bool handled = false;
// 4J - TomK no tooltips no touch!
if((!ui.GetMenuDisplayed(ProfileManager.GetPrimaryPad())) && (app.GetGameSettings(ProfileManager.GetPrimaryPad(),eGameSetting_Tooltips) == 0))
return;
// perform action on release
if(bReleased)
{
switch(iId)
{
case ETouchInput_Touch_A:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_A\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_A);
break;
case ETouchInput_Touch_B:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_B\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_B);
break;
case ETouchInput_Touch_X:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_X\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_X);
break;
case ETouchInput_Touch_Y:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_Y\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_Y);
break;
case ETouchInput_Touch_LT:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_LT\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_LT);
break;
case ETouchInput_Touch_RightTrigger:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_RT\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_RT);
break;
case ETouchInput_Touch_LeftBumper:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_LB\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_LB);
break;
case ETouchInput_Touch_RightBumper:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_RB\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_RB);
break;
case ETouchInput_Touch_LeftStick:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_LTHUMB\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_LTHUMB);
break;
case ETouchInput_Touch_RightStick:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_RTHUMB\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_RTHUMB);
break;
case ETouchInput_Touch_Select:
app.DebugPrintf("ToolTip Map Touch to _360_JOY_BUTTON_BACK\n", iId);
InputManager.MapTouchInput(iPad, _360_JOY_BUTTON_BACK);
break;
}
}
}
#endif
void UIComponent_Tooltips::handleReload()