Skip to content

Commit

Permalink
fix: 调整鼠标模拟速度默认配置
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Apr 6, 2021
1 parent 4a145b1 commit 26b8cf4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Core/CapslockX-Config.ahk
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
; 保存为 save with UTF8 with DOM
;
清洗为_UTF16_WITH_BOM_型编码(path){
static 锁 := 0
if(锁)
Return
锁 := 1
FileRead ModuleCode, %path%
FileDelete %path%
FileAppend %ModuleCode%, %path%, UTF-16
锁:=0
}
CapsLockX_ConfigSet(field, varName, setValue, comment := ""){
if(!CapsLockXConfigPath){
Expand Down
4 changes: 2 additions & 2 deletions Modules/01.1-插件-鼠标模拟.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ MouseTicker(){
tdw := dt(鼠刻上, tNow), tds := dt(鼠刻下, tNow)
; 计算这段时长的加速度
; tooltip % TMouse_MouseSpeedRatio
max := ma(tdd - tda) * TMouse_MouseSpeedRatio * TMouse_DPIRatio
may := ma(tds - tdw) * TMouse_MouseSpeedRatio * TMouse_DPIRatio
max := ma(tdd - tda) * TMouse_MouseSpeedRatio * TMouse_DPIRatio * 0.3
may := ma(tds - tdw) * TMouse_MouseSpeedRatio * TMouse_DPIRatio * 0.3
}

; ; 摩擦力不阻碍用户意志
Expand Down
2 changes: 1 addition & 1 deletion Tools/choco/Package.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>CapsLockX</id>
<title>CapsLockX - Operate the computer like a hacker!</title>
<version>1.14.5</version>
<version>1.14.6</version>
<authors>snomiao</authors>
<projectUrl>https://snomiao.github.io/CapsLockX/</projectUrl>
<iconUrl>https://github.com/snomiao/CapsLockX/raw/master/Data/XIconBlue.ico</iconUrl>
Expand Down
2 changes: 1 addition & 1 deletion Tools/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14.5
1.14.6
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capslockx",
"version": "1.14.5",
"version": "1.14.6",
"description": "CapsLockX 提供一套超好上手的:鼠标模拟、编辑增强、虚拟桌面与窗口管理、应用内热键增强、JS数学表达式计算、等超多功能等你来定义。",
"scripts": {
"CapsLockX": "CapsLockX.exe",
Expand Down

0 comments on commit 26b8cf4

Please sign in to comment.