mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 07:40:42 +01:00
[ion] Update the Event model
Change-Id: I41a53caeb7dd8a15e7934f49675f6a53be8fe7be
This commit is contained in:
committed by
Émilie Feral
parent
b220ed5dd8
commit
b87f06e3a2
@@ -77,17 +77,15 @@ void ValuesParameterController::setIntervalParameterAtIndex(int parameterIndex,
|
||||
}
|
||||
|
||||
bool ValuesParameterController::handleEvent(Ion::Events::Event event) {
|
||||
switch (event) {
|
||||
case Ion::Events::Event::ENTER:
|
||||
editInterval(false);
|
||||
return true;
|
||||
default:
|
||||
if ((int)event >= 0x100) {
|
||||
return false;
|
||||
}
|
||||
editInterval(true, (char)event);
|
||||
return true;
|
||||
if (event == Ion::Events::OK) {
|
||||
editInterval(false);
|
||||
return true;
|
||||
}
|
||||
if (event.hasText()) {
|
||||
editInterval(true, event.text()[0]); // FIXME: only first char
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void ValuesParameterController::editInterval(bool overwrite, char initialDigit) {
|
||||
|
||||
Reference in New Issue
Block a user