mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 11:35:45 +00:00
Full redesign
This commit is contained in:
parent
7bf3f54b38
commit
23b31367b2
8 changed files with 3 additions and 45 deletions
|
@ -517,7 +517,6 @@ void ImeDialogUi::OnVirtualKeyEvent(const VirtualKeyEvent* evt) {
|
|||
/* Up is available if you need it later; currently ignored */
|
||||
}
|
||||
|
||||
/* draw keyboard in a sub‑ID scope */
|
||||
void ImeDialogUi::DrawVirtualKeyboardSection() {
|
||||
ImGui::PushID("VirtualKeyboardSection");
|
||||
DrawVirtualKeyboard(kb_mode, state->type, shift_state, kb_language, KeyboardCallbackBridge,
|
||||
|
|
|
@ -158,18 +158,6 @@ private:
|
|||
ShiftState shift_state = ShiftState::None;
|
||||
u64 kb_language = 0;
|
||||
KeyboardStyle kb_style;
|
||||
/* KeyboardStyle kb_style{
|
||||
.layout_width = 500.0f,
|
||||
.layout_height = 250.0f,
|
||||
.key_spacing = 5.0f,
|
||||
.color_text = IM_COL32(225,225,225,255),
|
||||
.color_line = IM_COL32( 88, 88, 88,255),
|
||||
.color_button_default = IM_COL32( 35, 35, 35,255),
|
||||
.color_button_function = IM_COL32( 50, 50, 50,255),
|
||||
.color_special = IM_COL32( 0,140,200,255),
|
||||
.use_button_symbol_color= false,
|
||||
.color_button_symbol = IM_COL32( 60, 60, 60,255),
|
||||
};*/
|
||||
|
||||
void DrawVirtualKeyboardSection();
|
||||
void DrawPredictionBarAnCancelButton();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include <imgui.h>
|
||||
|
||||
#include "ime_keyboard_layouts.h"
|
||||
|
||||
int c16rtomb(char* out, char16_t ch) {
|
||||
|
|
|
@ -8,28 +8,6 @@
|
|||
#include <imgui.h>
|
||||
#include "common/types.h"
|
||||
|
||||
/*
|
||||
enum class OrbisImeKeyEntryType : u8 {
|
||||
ORBIS_IME_KEY_TYPE_CHARACTER = 0,
|
||||
ORBIS_IME_KEY_TYPE_FUNCTION = 1,
|
||||
ORBIS_IME_KEY_TYPE_DISABLED = 2
|
||||
};
|
||||
*/
|
||||
/*
|
||||
struct OrbisImeKeyEntry {
|
||||
u16 keycode;
|
||||
char16_t character;
|
||||
OrbisImeKeyEntryType type;
|
||||
u8 row;
|
||||
u8 col;
|
||||
u8 colspan;
|
||||
u8 rowspan;
|
||||
const char* label;
|
||||
const char* controller_hint;
|
||||
OrbisPadButtonDataOffset bound_buttons[2];
|
||||
};
|
||||
*/
|
||||
|
||||
enum class KeyType : u8 { Character = 0, Function = 1, Disabled = 2 };
|
||||
|
||||
struct KeyEntry {
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
#include "ime_dialog.h"
|
||||
#include "ime_keyboard_layouts.h"
|
||||
#include "ime_keyboard_ui.h"
|
||||
#include "ime_ui.h" // for ImeState
|
||||
|
||||
using namespace ImGui;
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,12 +3,8 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#include "core/libraries/ime/ime.h"
|
||||
#include "core/libraries/ime/ime_common.h"
|
||||
#include "core/libraries/ime/ime_error.h"
|
||||
#include "core/libraries/ime/ime_ui.h"
|
||||
#include "core/libraries/pad/pad.h"
|
||||
#include "ime_keyboard_layouts.h"
|
||||
|
||||
#include "core/libraries/ime/ime_keyboard_layouts.h"
|
||||
|
||||
/**
|
||||
* KeyboardMode: which layout we show (letters, accents, symbols, etc.)
|
||||
|
|
|
@ -249,5 +249,4 @@ int ImeUi::InputTextCallback(ImGuiInputTextCallbackData* data) {
|
|||
void ImeUi::Free() {
|
||||
RemoveLayer(this);
|
||||
}
|
||||
|
||||
}; // namespace Libraries::Ime
|
|
@ -72,5 +72,4 @@ private:
|
|||
|
||||
static int InputTextCallback(ImGuiInputTextCallbackData* data);
|
||||
};
|
||||
|
||||
}; // namespace Libraries::Ime
|
Loading…
Add table
Reference in a new issue