forked from KolibriOS/kolibrios
mousecfg: small code update
git-svn-id: svn://kolibrios.org@7372 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
4f5b381344
commit
f441b6c9b0
@ -1,4 +1,4 @@
|
|||||||
// Mouse Configuration Utility ver 1.5
|
// Mouse Configuration Utility ver 1.51
|
||||||
|
|
||||||
#ifndef AUTOBUILD
|
#ifndef AUTOBUILD
|
||||||
#include "lang.h--"
|
#include "lang.h--"
|
||||||
@ -80,18 +80,18 @@ void main() {
|
|||||||
|
|
||||||
case evButton:
|
case evButton:
|
||||||
id = GetButtonID();
|
id = GetButtonID();
|
||||||
if (id == 1) ExitApp();
|
if (1 == id) ExitApp();
|
||||||
else if (pointer_speed.click(id)) ApplyCfg();
|
else if (pointer_speed.click(id)) ApplyCfg();
|
||||||
else if (acceleration.click(id)) ApplyCfg();
|
else if (acceleration.click(id)) ApplyCfg();
|
||||||
else if (double_click_delay.click(id)) ApplyCfg();
|
else if (double_click_delay.click(id)) ApplyCfg();
|
||||||
else if (emulation.click(id)) {
|
else if (emulation.click(id)) {
|
||||||
if (emulation.checked == true) RunProgram("/sys/mousemul", 0);
|
if (emulation.checked == true) RunProgram("/sys/mousemul", 0);
|
||||||
else KillProcessByName("mousemul", SINGLE);
|
else KillProcessByName("/sys/mousemul", SINGLE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (madmouse.click(id)) {
|
else if (madmouse.click(id)) {
|
||||||
if (madmouse.checked == true) RunProgram("/sys/madmouse", 0);
|
if (madmouse.checked == true) RunProgram("/sys/madmouse", 0);
|
||||||
else KillProcessByName("madmouse", SINGLE);
|
else KillProcessByName("/sys/madmouse", SINGLE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user