mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-08 18:16:12 +00:00
New touch crosspad that can do diagonals
This commit is contained in:
parent
7425532e99
commit
4bca64f5cf
@ -28,10 +28,7 @@ TouchButton buttonSelect(&ui_atlas, I_RECT, I_SELECT, PAD_BUTTON_SELECT);
|
||||
TouchButton buttonStart(&ui_atlas, I_RECT, I_START, PAD_BUTTON_START);
|
||||
TouchButton buttonLShoulder(&ui_atlas, I_SHOULDER, I_L, PAD_BUTTON_LBUMPER);
|
||||
TouchButton buttonRShoulder(&ui_atlas, I_SHOULDER, I_R, PAD_BUTTON_RBUMPER, 0, true);
|
||||
TouchButton buttonLeft(&ui_atlas, I_DIR, I_ARROW, PAD_BUTTON_LEFT, 0);
|
||||
TouchButton buttonUp(&ui_atlas, I_DIR, I_ARROW, PAD_BUTTON_UP, 90);
|
||||
TouchButton buttonRight(&ui_atlas, I_DIR, I_ARROW, PAD_BUTTON_RIGHT, 180);
|
||||
TouchButton buttonDown(&ui_atlas, I_DIR, I_ARROW, PAD_BUTTON_DOWN, 270);
|
||||
TouchCrossPad crossPad(&ui_atlas, I_DIR, I_ARROW);
|
||||
#if defined(__SYMBIAN32__) || defined(IOS)
|
||||
TouchButton buttonPause(&ui_atlas, I_RECT, I_ARROW, PAD_BUTTON_BACK, 90);
|
||||
#endif
|
||||
@ -40,7 +37,7 @@ TouchStick leftStick(&ui_atlas, I_STICKBG, I_STICK, 0);
|
||||
|
||||
void LayoutGamepad(int w, int h)
|
||||
{
|
||||
float controlScale = g_Config.bLargeControls ? 1.6 : 1.15;
|
||||
float controlScale = true||g_Config.bLargeControls ? 1.6 : 1.15;
|
||||
|
||||
const int button_spacing = 50 * controlScale;
|
||||
const int arrow_spacing = 40 * controlScale;
|
||||
@ -65,10 +62,7 @@ void LayoutGamepad(int w, int h)
|
||||
buttonTri.setPos(circleX - button_spacing, circleY - button_spacing, controlScale);
|
||||
buttonSq.setPos(circleX - button_spacing * 2, circleY, controlScale);
|
||||
|
||||
buttonLeft.setPos(leftX, leftY, controlScale);
|
||||
buttonUp.setPos(leftX + arrow_spacing, leftY - arrow_spacing, controlScale);
|
||||
buttonDown.setPos(leftX + arrow_spacing, leftY + arrow_spacing, controlScale);
|
||||
buttonRight.setPos(leftX + arrow_spacing * 2, leftY, controlScale);
|
||||
crossPad.setPos(leftX + arrow_spacing, leftY, 40, controlScale);
|
||||
|
||||
buttonSelect.setPos(halfW - button_spacing, h - 20 * controlScale, controlScale);
|
||||
buttonStart.setPos(halfW + button_spacing, h - 20 * controlScale, controlScale);
|
||||
@ -91,10 +85,7 @@ void UpdateGamepad(InputState &input_state)
|
||||
buttonTri.update(input_state);
|
||||
buttonSq.update(input_state);
|
||||
|
||||
buttonLeft.update(input_state);
|
||||
buttonUp.update(input_state);
|
||||
buttonDown.update(input_state);
|
||||
buttonRight.update(input_state);
|
||||
crossPad.update(input_state);
|
||||
|
||||
buttonSelect.update(input_state);
|
||||
buttonStart.update(input_state);
|
||||
@ -118,10 +109,7 @@ void DrawGamepad(DrawBuffer &db)
|
||||
buttonTri.draw(db, color, colorOverlay);
|
||||
buttonSq.draw(db, color, colorOverlay);
|
||||
|
||||
buttonLeft.draw(db, color, colorOverlay);
|
||||
buttonUp.draw(db, color, colorOverlay);
|
||||
buttonDown.draw(db, color, colorOverlay);
|
||||
buttonRight.draw(db, color, colorOverlay);
|
||||
crossPad.draw(db, color, colorOverlay);
|
||||
|
||||
buttonSelect.draw(db, color, colorOverlay);
|
||||
buttonStart.draw(db, color, colorOverlay);
|
||||
|
@ -67,13 +67,13 @@
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
@ -93,6 +93,12 @@
|
||||
<OutDir>..\</OutDir>
|
||||
<TargetName>PPSSPPDebug</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<TargetName>PPSSPPDebug64</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<TargetName>PPSSPPWindows64</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
|
2
native
2
native
@ -1 +1 @@
|
||||
Subproject commit 1f34f8ff60e32396d39f3c5add58841dff772e34
|
||||
Subproject commit faf8b260ed7617aaa08e6d420db95e03eef659d3
|
Loading…
x
Reference in New Issue
Block a user