mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
iOS: Track controller connect/disconnect, reset controls on disconnect.
This commit is contained in:
1 parent
25d216a20a
commit
c7a7db3bbe
3 files changed
+46
-1
No files matched your search
+1
-1
@@ -42,7 +42,7 @@ void ChatMenu::CreateContents(UI::ViewGroup *parent) {
|
||||
LinearLayout *quickChat = outer->Add(new LinearLayout(ORIENT_HORIZONTAL, new LayoutParams(FILL_PARENT, WRAP_CONTENT)));
|
||||
for (int i = 0; i < 5; i++) {
|
||||
std::string name = std::to_string(i + 1);
|
||||
quickChat->Add(new Button(name, new LinearLayoutParams(1.0)))->OnClick.Add([this, i](UI::EventParams &e) {
|
||||
quickChat->Add(new Button(name, new LinearLayoutParams(1.0)))->OnClick.Add([i](UI::EventParams &e) {
|
||||
sendChat(g_Config.sQuickChat[i]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user