Fixed error checkbox and optimized if

git-svn-id: svn://kolibrios.org@7371 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pavelyakov 2018-09-15 12:29:14 +00:00
parent 85eba68836
commit 4f5b381344

View File

@ -80,17 +80,19 @@ void main() {
case evButton: case evButton:
id = GetButtonID(); id = GetButtonID();
if (1==id) ExitApp(); if (id == 1) ExitApp();
if (pointer_speed.click(id)) ApplyCfg();; else if (pointer_speed.click(id)) ApplyCfg();
if (acceleration.click(id)) ApplyCfg();; else if (acceleration.click(id)) ApplyCfg();
if (double_click_delay.click(id)) ApplyCfg();; else if (double_click_delay.click(id)) ApplyCfg();
if (emulation.click(id)) { else if (emulation.click(id)) {
if (emulation.checked==true) KillProcessByName("mousemul", SINGLE); if (emulation.checked == true) RunProgram("/sys/mousemul", 0);
else RunProgram("/sys/mousemul", 0); else KillProcessByName("mousemul", SINGLE);
break;
} }
if (madmouse.click(id)) { else if (madmouse.click(id)) {
if (madmouse.checked==true) KillProcessByName("madmouse", SINGLE); if (madmouse.checked == true) RunProgram("/sys/madmouse", 0);
else RunProgram("/sys/madmouse", 0); else KillProcessByName("madmouse", SINGLE);
break;
} }
break; break;