static UINT Fire(UINT what) { switch (what) { case 0: return FALL_THROUGH; case FIRE_NOTHING: break; case FIRE_POWER: Power(); break; case FIRE_EJECT: Eject(); break; case FIRE_FLIP3D: Flip3D(); break; case FIRE_BRIGHT_DN: Bright(-BRIGHT_STEP); break; case FIRE_BRIGHT_UP: Bright(+BRIGHT_STEP); break; case FIRE_ALPHA_DN: Alpha(-ALPHA_DELTA); break; case FIRE_ALPHA_UP: Alpha(+ALPHA_DELTA); break; default: if (FIRE_CMD_0 <= what && what < FIRE_CMD_0 + ARRAYSIZE(config_szCmds)) Exec(config_szCmds[what - FIRE_CMD_0]); else SendKey(what); } return FIRED; }
/* @(/1/0/1/2/2) ...........................................................*/ static QState LPJ_Bright(LPJ * const me, QEvent const * const e) { QState status; switch (e->sig) { /* @(/1/0/1/2/2) */ case Q_ENTRY_SIG: { Bright(); me->dimm = 0; status = Q_HANDLED(); break; } case PIRIntr_SIG: { me->pir =((pirEvt const *)e)->pir; //kirimReport((me->pir)+4); status = Q_HANDLED(); break; } default: { status = Q_SUPER(&LPJ_On); break; } } return status; }