[sky9x] Issue 111 fixed

[stock] 120bytes saved with DBLKEYS option
This commit is contained in:
bsongis
2012-09-04 10:09:35 +00:00
parent fddbe300a1
commit bd2def4d4d
4 changed files with 38 additions and 9 deletions
+4 -4
View File
@@ -74,13 +74,13 @@ void Key::input(bool val, EnumKeys enuk)
{
uint8_t t_vals = m_vals ;
t_vals <<= 1 ;
if(val) t_vals |= 1; //portbit einschieben
if (val) t_vals |= 1; //portbit einschieben
m_vals = t_vals ;
m_cnt++;
if(m_state && m_vals==0){ //gerade eben sprung auf 0
if(m_state!=KSTATE_KILLED) {
if (m_state && m_vals==0) { //gerade eben sprung auf 0
if (m_state != KSTATE_KILLED) {
putEvent(EVT_KEY_BREAK(enuk));
}
m_cnt = 0;
@@ -88,7 +88,7 @@ void Key::input(bool val, EnumKeys enuk)
}
switch(m_state){
case KSTATE_OFF:
if(m_vals==FFVAL){ //gerade eben sprung auf ff
if (m_vals == FFVAL) { //gerade eben sprung auf ff
m_state = KSTATE_START;
m_cnt = 0;
}