Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
ewt45 committed Mar 18, 2023
1 parent c81234b commit f6e350f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public boolean handleBtnFingerDown(Finger finger) {

if (!isInside(finger))
return false;
Log.d(TAG, String.format("handleBtnFingerDown: 在toucharea范围内吗%f,%f,%f,%f", topX, topY, bottomX, bottomY));
// Log.d(TAG, String.format("handleBtnFingerDown: 在toucharea范围内吗%f,%f,%f,%f", topX, topY, bottomX, bottomY));

//如果finger已经失效,就清空数组。(这样如果按键卡住了,再次按下的时候就可以恢复)
if (activeFinger == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ protected void updateModelMargins(int marginLeft, int marginTop) {

@Override
public void injectPress(Finger finger) {
Log.d(TAG, "injectPress: 按下键" + mOneKey.getName());
// Log.d(TAG, "injectPress: 按下键" + mOneKey.getName());
/*
按键输入,如果是shift这种,按下就触发,交给ontouch处理,否则交给onclick处理
不如先都交给onclick处理吧。修饰键点击时只按下或抬起,普通键点击时一次完整的按下抬起。
Expand Down
4 changes: 3 additions & 1 deletion patchapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
applicationId "com.ewt45.patchapp"
minSdk 21
targetSdk 27
versionCode 2
versionCode 3
versionName "0.0.2"
resConfigs "en", "zh","ru"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -36,7 +36,9 @@ android {

dependencies {

//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
//noinspection GradleCompatible
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'android.arch.navigation:navigation-fragment:1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion patchapp/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 2,
"versionCode": 3,
"versionName": "0.0.2",
"outputFile": "patchapp-release.apk"
}
Expand Down

0 comments on commit f6e350f

Please sign in to comment.