Translations:Virtual/10/ru

Revision as of 13:37, 26 January 2022 by Rusanov (talk | contribs) (Created page with "Скрипт обработки нажатия <syntaxhighlight lang="cpp" line> u8 state[2] = {0,0}; V-ID/142:99 { if (opt(0)==0xff){ if (state[0]==0) state[0] =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Скрипт обработки нажатия

 1u8 state[2] = {0,0};
 2V-ID/142:99
 3{
 4    if (opt(0)==0xff){
 5        if (state[0]==0) state[0] = 1;
 6        else state[0] = 0;
 7    }else (opt(0)==0xfe){
 8     state[0]=state[0];
 9    }else {
10     state[0]=opt(0);
11    }
12 
13    if(opt(1)==0xfe){
14     state[1]=state[1];
15    }else {
16  state[1]=opt(1);
17    }
18    setStatus(142:99,state);  
19}