mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[Ion] Move to C++
Change-Id: Id75fca5e92a3fdf18258015bcda7cd70297b0fdb
This commit is contained in:
@@ -71,14 +71,14 @@ TabViewController::TabViewController(Responder * parentResponder, ViewController
|
||||
}
|
||||
}
|
||||
|
||||
bool TabViewController::handleEvent(ion_event_t event) {
|
||||
bool TabViewController::handleEvent(Ion::Events::Event event) {
|
||||
switch(event) {
|
||||
case LEFT_ARROW:
|
||||
case Ion::Events::Event::LEFT_ARROW:
|
||||
if (m_activeChildIndex > 0) {
|
||||
setActiveTab(m_activeChildIndex-1);
|
||||
}
|
||||
return true;
|
||||
case RIGHT_ARROW:
|
||||
case Ion::Events::Event::RIGHT_ARROW:
|
||||
if (m_activeChildIndex < m_numberOfChildren-1) {
|
||||
setActiveTab(m_activeChildIndex+1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user