[ion] More accurate event map

Change-Id: I06723e69e07c9a0ca5817f66f939e64aae975f36
This commit is contained in:
Romain Goyet
2017-05-01 18:36:17 +02:00
parent 89e3baa26a
commit ea0c8a4095

View File

@@ -49,10 +49,10 @@ static constexpr EventData s_dataForEvent[4*Event::PageSize] = {
U(), U(), TL(), TL(), TL(), TL(),
T("["), T("]"), T("{"), T("}"), T("_"), T(k_sto),
T("asin()"), T("acos()"), T("atan()"), T("="), T("<"), T(">"),
U(), U(), TL(), TL(), TL(), TL(),
U(), U(), TL(), TL(), TL(), TL(),
U(), U(), TL(), TL(), TL(), TL(),
U(), U(), TL(), TL(), TL(), TL(),
U(), U(), U(), U(), U(), U(),
U(), U(), U(), U(), U(), U(),
U(), U(), U(), U(), U(), U(),
U(), U(), U(), U(), U(), U(),
// Alpha
U(), U(), U(), U(), U(), U(),
U(), U(), U(), U(), U(), U(),
@@ -71,7 +71,7 @@ static constexpr EventData s_dataForEvent[4*Event::PageSize] = {
T("G"), T("H"), T("I"), T("J"), T("K"), T("L"),
T("M"), T("N"), T("O"), T("P"), T("Q"), U(),
T("R"), T("S"), T("T"), T("U"), T("V"), U(),
T("W"), T("X"), T("Y"), T("Z"), T(" "), U(),
T("W"), T("X"), T("Y"), T("Z"), U(), U(),
U(), U(), U(), U(), U(), U(),
};
@@ -126,7 +126,7 @@ bool Event::isValid() const {
if (isKeyboardEvent()) {
return s_dataForEvent[m_id].isDefined();
} else {
return (*this == None);
return (*this == None || *this == Termination);
}
}