mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Making the input letter closer
This commit is contained in:
parent
082382d5ef
commit
757ff087f9
1 changed files with 4 additions and 4 deletions
|
@ -113,8 +113,8 @@ void PSPOskDialog::RenderKeyboard()
|
|||
limit = 16;
|
||||
|
||||
const float keyboardLeftSide = (480.0f - (24.0f * KEYSPERROW)) / 2.0f;
|
||||
float previewLeftSide = (480.0f - (16.0f * limit)) / 2.0f;
|
||||
float title = (480.0f - limit) / 2.0f;
|
||||
float previewLeftSide = (480.0f - (12.0f * limit)) / 2.0f;
|
||||
float title = (480.0f - (0.5f * limit)) / 2.0f;
|
||||
|
||||
PPGeDrawText(oskDesc.c_str(), title , 20, PPGE_ALIGN_CENTER, 0.5f, CalcFadedColor(0xFFFFFFFF));
|
||||
for (u32 i = 0; i < limit; ++i)
|
||||
|
@ -130,7 +130,7 @@ void PSPOskDialog::RenderKeyboard()
|
|||
else
|
||||
temp[0] = '_';
|
||||
|
||||
PPGeDrawText(temp, previewLeftSide + (i * 16.0f), 40.0f, 0, 0.5f, color);
|
||||
PPGeDrawText(temp, previewLeftSide + (i * 12.0f), 40.0f, 0, 0.5f, color);
|
||||
}
|
||||
for (int row = 0; row < NUMKEYROWS; ++row)
|
||||
{
|
||||
|
@ -211,7 +211,7 @@ int PSPOskDialog::Update()
|
|||
if (IsButtonPressed(CTRL_CROSS))
|
||||
{
|
||||
if (inputChars.size() < limit)
|
||||
inputChars += (oskKeys[selectedRow][selectedExtra]);
|
||||
inputChars += oskKeys[selectedRow][selectedExtra];
|
||||
}
|
||||
else if (IsButtonPressed(CTRL_SELECT))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue