summaryrefslogtreecommitdiffstats
path: root/src/core/hle/applets/swkbd.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-05-27 22:21:06 +0200
committerSubv <subv2112@gmail.com>2015-07-12 05:32:12 +0200
commit725d5eea7879fa152c51f15fd76003d3c6bc44ed (patch)
treec260c6e094467c5d6b4694283573381310c2c96c /src/core/hle/applets/swkbd.h
parentApplets: Add infrastructure to allow custom drawing and input handling in Applets. (diff)
downloadyuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.tar
yuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.tar.gz
yuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.tar.bz2
yuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.tar.lz
yuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.tar.xz
yuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.tar.zst
yuzu-725d5eea7879fa152c51f15fd76003d3c6bc44ed.zip
Diffstat (limited to 'src/core/hle/applets/swkbd.h')
-rw-r--r--src/core/hle/applets/swkbd.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/core/hle/applets/swkbd.h b/src/core/hle/applets/swkbd.h
index 5970390c6..98e81c48a 100644
--- a/src/core/hle/applets/swkbd.h
+++ b/src/core/hle/applets/swkbd.h
@@ -42,17 +42,21 @@ struct SoftwareKeyboardConfig {
INSERT_PADDING_BYTES(0x2B6);
};
+/**
+ * The size of this structure (0x400) has been verified via reverse engineering of multiple games
+ * that use the software keyboard.
+ */
static_assert(sizeof(SoftwareKeyboardConfig) == 0x400, "Software Keyboard Config size is wrong");
-class SoftwareKeyboard : public Applet {
+class SoftwareKeyboard final : public Applet {
public:
SoftwareKeyboard(Service::APT::AppletId id);
~SoftwareKeyboard() {}
- ResultCode ReceiveParameter(Service::APT::MessageParameter const& parameter) override;
- ResultCode Start(Service::APT::AppletStartupParameter const& parameter) override;
+ ResultCode ReceiveParameter(const Service::APT::MessageParameter& parameter) override;
+ ResultCode StartImpl(const Service::APT::AppletStartupParameter& parameter) override;
void Update() override;
- bool IsRunning() override { return started; }
+ bool IsRunning() const override { return started; }
/**
* Draws a keyboard to the current bottom screen framebuffer.
@@ -65,13 +69,13 @@ public:
*/
void Finalize();
- /// TODO(Subv): Find out what this is actually used for.
- // It is believed that the application stores the current screen image here.
+ /// TODO(Subv): Find out what this is actually used for.
+ /// It is believed that the application stores the current screen image here.
Kernel::SharedPtr<Kernel::SharedMemory> framebuffer_memory;
/// SharedMemory where the output text will be stored
Kernel::SharedPtr<Kernel::SharedMemory> text_memory;
-
+
/// Configuration of this instance of the SoftwareKeyboard, as received from the application
SoftwareKeyboardConfig config;