21 lines
850 B
C++
21 lines
850 B
C++
#include <string>
|
|
#include <switch.h>
|
|
#include <switch/services/hid.h>
|
|
#include <vector>
|
|
#include <MainApplication.hpp>
|
|
|
|
namespace ui {
|
|
MainApplication *mainApp;
|
|
|
|
void MainApplication::OnLoad() {
|
|
mainApp = this;
|
|
this->usersLayout = UsersLayout::New();
|
|
this->titlesLayout = TitlesLayout::New();
|
|
this->usersLayout->SetOnInput(
|
|
std::bind(&UsersLayout::onInput, this->usersLayout, std::placeholders::_1, std::placeholders::_2,
|
|
std::placeholders::_3, std::placeholders::_4));
|
|
this->titlesLayout->SetOnInput(std::bind(&TitlesLayout::onInput, this->titlesLayout,std::placeholders::_1, std::placeholders::_2,
|
|
std::placeholders::_3, std::placeholders::_4));
|
|
this->LoadLayout(this->usersLayout);
|
|
}
|
|
} |