forked from KolibriOS/kolibrios
Fixed error checkbox and optimized if
git-svn-id: svn://kolibrios.org@7371 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
85eba68836
commit
4f5b381344
@ -80,17 +80,19 @@ void main() {
|
||||
|
||||
case evButton:
|
||||
id = GetButtonID();
|
||||
if (1==id) ExitApp();
|
||||
if (pointer_speed.click(id)) ApplyCfg();;
|
||||
if (acceleration.click(id)) ApplyCfg();;
|
||||
if (double_click_delay.click(id)) ApplyCfg();;
|
||||
if (emulation.click(id)) {
|
||||
if (emulation.checked==true) KillProcessByName("mousemul", SINGLE);
|
||||
else RunProgram("/sys/mousemul", 0);
|
||||
if (id == 1) ExitApp();
|
||||
else if (pointer_speed.click(id)) ApplyCfg();
|
||||
else if (acceleration.click(id)) ApplyCfg();
|
||||
else if (double_click_delay.click(id)) ApplyCfg();
|
||||
else if (emulation.click(id)) {
|
||||
if (emulation.checked == true) RunProgram("/sys/mousemul", 0);
|
||||
else KillProcessByName("mousemul", SINGLE);
|
||||
break;
|
||||
}
|
||||
if (madmouse.click(id)) {
|
||||
if (madmouse.checked==true) KillProcessByName("madmouse", SINGLE);
|
||||
else RunProgram("/sys/madmouse", 0);
|
||||
else if (madmouse.click(id)) {
|
||||
if (madmouse.checked == true) RunProgram("/sys/madmouse", 0);
|
||||
else KillProcessByName("madmouse", SINGLE);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user