Commit Graph

3 Commits

Author SHA1 Message Date
StackZ a5f7134d1c Major Screen changes. (If using the screen class, read the description!!)
Changes which are needed when using the screen class:

- Add `void callConstructor() override { }` to your screen's public header.
- Call `Gui::DrawScreen();` to draw the screen.
- Call `Gui::ScreenLogic(u32 hDown, u32 hHeld, touchPosition touch);` to call the Logic.
- Call `Gui::CallConstructor();` to call the used screen's constructor.
- call `Gui::setScreen(std::make_unique<ScreenName>(), <true/ false, depends if you like to transfer the screen to the usedScreen directly.>);` to set the screen.
- Call `Gui::transferScreen();` in case you like to set the tempScreen to the used one.
- Get rid of the `Gui::screenBack();` calls and use `Gui::setScreen(...)` directly for it.
2020-05-26 05:25:33 +02:00
StackZ 4dc2426fa5 Some more checks to avoid possible crashes. 2020-05-21 05:49:21 +02:00
StackZ eceb6b884d Some changes & additions. (#2)
* Initial HID implementation.

Not everything may be right. I have to figure out some stuff tho.

* Add a tint param to `Gui::DrawSprite()`.

Also add Universal-Core logo.
2020-03-05 04:25:52 +01:00