mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Cosmetics
This commit is contained in:
parent
6504b4f69c
commit
f5c60a86a9
24 changed files with 171 additions and 126 deletions
|
@ -44,13 +44,10 @@ Key keys[NUM_KEYS];
|
|||
|
||||
event_t getEvent(bool trim)
|
||||
{
|
||||
event_t evt = s_evt;
|
||||
int8_t k = EVT_KEY_MASK(s_evt) - TRM_BASE;
|
||||
bool trim_evt = (k>=0 && k<TRM_LAST-TRM_BASE+1);
|
||||
|
||||
if (trim == trim_evt) {
|
||||
event_t event = s_evt;
|
||||
if (trim == IS_TRIM_EVENT(event)) {
|
||||
s_evt = 0;
|
||||
return evt;
|
||||
return event;
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue